]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/extra-utils/file.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / file.ts
1 import { stat } from 'fs-extra'
2
3 async function getFileSize (path: string) {
4 const stats = await stat(path)
5
6 return stats.size
7 }
8
9 export {
10 getFileSize
11 }