PeerTube/shared/extra-utils/file.ts

12 lines
159 B
TypeScript
Raw Normal View History

import { stat } from 'fs-extra'
async function getFileSize (path: string) {
const stats = await stat(path)
return stats.size
}
export {
getFileSize
}