Get the size of a directory in bytes.
const res = toolkit.utils.getDirectorySize('path/to/directory');
string | File[]
const res = toolkit.utils.getDirectorySize('path/to/directory'); console.log(res); // 2341341
Was this page helpful?