> ## 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

<a id="sql-kifs-create-dir" />

Creates a new [KiFS directory](/content/tools/kifs_api#kifs-directory) under which
[files](/content/tools/kifs_api#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

<AccordionGroup>
  <Accordion title="<directory name>" id="<directory-name>" defaultOpen>
    Name of the *directory* to create.
  </Accordion>

  <Accordion title="WITH OPTIONS" id="with-options" defaultOpen>
    Optional indicator that a comma-delimited list of option/value assignments will follow.
    The following options are available:

    <div>
      <table class="table w-full [&_td]:min-w-[150px] [&_th]:text-left [&_td[data-numeric]]:tabular-nums">
        <thead>
          <tr>
            <th>Option</th>
            <th>Description</th>
          </tr>
        </thead>

        <tbody>
          <tr>
            <td><code>data\_limit</code></td>
            <td>Total capacity the given *directory* should not exceed, in bytes; use <code>-1</code> for no limit</td>
          </tr>
        </tbody>
      </table>
    </div>
  </Accordion>
</AccordionGroup>

## 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.