Usage
Input Parameters
- files:
string | File[]: The path to the directory or an array of files.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the size of a directory in bytes.
const res = toolkit.utils.getDirectorySize('path/to/directory');
string | File[]: The path to the directory or an array of files.const res = toolkit.utils.getDirectorySize('path/to/directory');
console.log(res); // 2341341
Was this page helpful?