Skip to main content

Documentation Index

Fetch the complete documentation index at: https://atomictoolkit.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

This function returns the size of a directory in bytes.

Usage

const res = toolkit.utils.getDirectorySize('path/to/directory');

Input Parameters

  • files: string | File[]: The path to the directory or an array of files.

Example

const res = toolkit.utils.getDirectorySize('path/to/directory');

console.log(res); // 2341341