> ## Documentation Index
> Fetch the complete documentation index at: https://atomictoolkit.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Directory Size

> Get the size of a directory in bytes.

This function returns the size of a directory in bytes.

## Usage

```ts theme={null}
const res = toolkit.utils.getDirectorySize('path/to/directory');
```

## Input Parameters

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

## Example

```ts theme={null}
const res = toolkit.utils.getDirectorySize('path/to/directory');

console.log(res); // 2341341
```
