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