mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 12:59:15 -06:00
12 lines
159 B
TypeScript
12 lines
159 B
TypeScript
|
import { stat } from 'fs-extra'
|
||
|
|
||
|
async function getFileSize (path: string) {
|
||
|
const stats = await stat(path)
|
||
|
|
||
|
return stats.size
|
||
|
}
|
||
|
|
||
|
export {
|
||
|
getFileSize
|
||
|
}
|