folderSize

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs

Calculate the size of the passed folder and return it through a promise in bytes format

Params

  1. folderPath*-String

    The folder path to calculate the size

Return

  1. -Promise

    A promise that will be resolved once the folder size has been calculated

Example

import { folderSize } from '@blackbyte/sugar/fs';
await folderSize('my/cool/folder');

Todo

  • testsnormal