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

# CREATE DIRECTORY

Creates a new [KiFS directory](https://docs.kinetica.com/content/tools/kifs_api.md#kifs-directory) under which
[files](https://docs.kinetica.com/content/tools/kifs_api.md#kifs-file) can be uploaded and used for data loading.

```sql title="CREATE DIRECTORY Syntax" theme={null}
CREATE DIRECTORY '<directory name>'
[WITH OPTIONS (data_limit = <data limit value>)]
```

## Parameters

> [accordion] \<directory name>
>
> Name of the *directory* to create.

> [accordion] WITH OPTIONS
>
> Optional indicator that a comma-delimited list of option/value assignments will follow.
> The following options are available:
>
> <table>
>   <thead>
>     <tr>
>       <th>Option</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>`data_limit`</td>
>       <td>Total capacity the given *directory* should not exceed, in bytes; use `-1` for no limit</td>
>     </tr>
>   </tbody>
> </table>

## Examples

To create a *directory*, `kdata`, with no size limit:

```sql CREATE DIRECTORY Example theme={null}
CREATE DIRECTORY 'kdata'
```

To create a *directory*, `fs_limited`, with a 1,000,000 byte maximum capacity:

```sql CREATE DIRECTORY with Limit Example theme={null}
CREATE DIRECTORY 'fs_limited'
WITH OPTIONS (data_limit = 1000000)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.