PeerTube/shared/extra-utils/file.ts
2021-12-17 12:24:03 +01:00

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
}