shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- folderPath*-String
The folder path to calculate the size
Return
- -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
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space