Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

162 B
Raw Blame
import { stat } from 'fs/promises'

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

  return stats.size
}

export {
  getFileSize
}