aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/file.ts
blob: 8060ab52092e2c04d8b8badb98eed50cc7fb96e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { stat } from 'fs-extra'

async function getFileSize (path: string) {
  const stats = await stat(path)

  return stats.size
}

export {
  getFileSize
}