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

# createDirectory

<div className="kinetica-doxygen">
  <div id="ad932eb748735980773e9f45a50aaf818" />

  <h2 className="memtitle"><span className="permalink"><a href="#ad932eb748735980773e9f45a50aaf818">◆ </a></span>createDirectory() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> gpudb::GPUdb::createDirectory </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryRequest">CreateDirectoryRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Creates a new directory in <a href="/content/tools/kifs/" target="_top">KiFS</a>. </p>
      <p>The new directory serves as a location in which the user can upload files using <a className="el" href="#abf858a844a619c04135d680ce9a2fe4c">uploadFiles</a>.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a9ca93f20fbe8707eeb45074103ea0041" />

  <h2 className="memtitle"><span className="permalink"><a href="#a9ca93f20fbe8707eeb45074103ea0041">◆ </a></span>createDirectory() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> & gpudb::GPUdb::createDirectory </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryRequest">CreateDirectoryRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Creates a new directory in <a href="/content/tools/kifs/" target="_top">KiFS</a>. </p>
      <p>The new directory serves as a location in which the user can upload files using <a className="el" href="#abf858a844a619c04135d680ce9a2fe4c">uploadFiles</a>.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a3251f84a1c160b981f62beee27787825" />

  <h2 className="memtitle"><span className="permalink"><a href="#a3251f84a1c160b981f62beee27787825">◆ </a></span>createDirectory() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> gpudb::GPUdb::createDirectory </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">directoryName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Creates a new directory in <a href="/content/tools/kifs/" target="_top">KiFS</a>. </p>
      <p>The new directory serves as a location in which the user can upload files using <a className="el" href="#a536c56e50bedb45ae384af8de3b6483a">uploadFiles</a>.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">directoryName</td>
              <td>Name of the directory in KiFS to be created. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a6eea48ad93a90f8e00c194cfe87250d7">create\_directory\_create\_home\_directory</a>: When set, a home directory is created for the user name provided in the value. The <span className="em arg">directoryName</span> must be an empty string in this case. The user must exist. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a4b6b939da3d5ca9fae8f0e262abe2497">create\_directory\_data\_limit</a>: The maximum capacity, in bytes, to apply to the created directory. Set to -1 to indicate no upper limit. If empty, the system default limit is applied. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a0c2b822bf59c127ed06112f8e4fe90eb">create\_directory\_no\_error\_if\_exists</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a65fde3c9705cf756aa5f7115e18ca283">true</a>, does not return an error if the directory already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a65fde3c9705cf756aa5f7115e18ca283">create\_directory\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a8087053c4f1d8d6fc90cf27e01b1875f">create\_directory\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a8087053c4f1d8d6fc90cf27e01b1875f">create\_directory\_false</a>.
                  </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a7b984154441271fb6003152b0033f732" />

  <h2 className="memtitle"><span className="permalink"><a href="#a7b984154441271fb6003152b0033f732">◆ </a></span>createDirectory() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> & gpudb::GPUdb::createDirectory </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">directoryName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Creates a new directory in <a href="/content/tools/kifs/" target="_top">KiFS</a>. </p>
      <p>The new directory serves as a location in which the user can upload files using <a className="el" href="#a536c56e50bedb45ae384af8de3b6483a">uploadFiles</a>.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">directoryName</td>
              <td>Name of the directory in KiFS to be created. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a6eea48ad93a90f8e00c194cfe87250d7">create\_directory\_create\_home\_directory</a>: When set, a home directory is created for the user name provided in the value. The <span className="em arg">directoryName</span> must be an empty string in this case. The user must exist. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a4b6b939da3d5ca9fae8f0e262abe2497">create\_directory\_data\_limit</a>: The maximum capacity, in bytes, to apply to the created directory. Set to -1 to indicate no upper limit. If empty, the system default limit is applied. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a0c2b822bf59c127ed06112f8e4fe90eb">create\_directory\_no\_error\_if\_exists</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a65fde3c9705cf756aa5f7115e18ca283">true</a>, does not return an error if the directory already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a65fde3c9705cf756aa5f7115e18ca283">create\_directory\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a8087053c4f1d8d6fc90cf27e01b1875f">create\_directory\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a8087053c4f1d8d6fc90cf27e01b1875f">create\_directory\_false</a>.
                  </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateDirectoryResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
