> ## 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="a200dad0ad8c6f994e828e29058102732" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname"><a className="el" href="/content/api/cs/classkinetica_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> kinetica.Kinetica.createDirectory </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1CreateDirectoryRequest">CreateDirectoryRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
                <td>)</td>

                <td />
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </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="#aa2236808ac435d52ef3ac560cd210ce4">uploadFiles</a>.</p>

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

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request 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">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L19921">19921</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="ad44fe05b299309eaa787311076c7389d" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname"><a className="el" href="/content/api/cs/classkinetica_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> kinetica.Kinetica.createDirectory </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">directory\_name</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </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="#aa2236808ac435d52ef3ac560cd210ce4">uploadFiles</a>.</p>

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

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

            <tr>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a36fde2b27560bf951502c6bf15e864d7">CREATE\_HOME\_DIRECTORY</a>: When set, a home directory is created for the user name provided in the value. The <span className="em">directory\_name</span> must be an empty string in this case. The user must exist. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#af7836dec4c9900e9ea014c023978b77b">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/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#aba768d32002b40ef872a43106a19454b">NO\_ERROR\_IF\_EXISTS</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a2b636bf67846dd98d2c63c503c2941e7">TRUE</a>, does not return an error if the directory already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a2b636bf67846dd98d2c63c503c2941e7">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a55c83cb063738dfaa0cb8d0dd093f595">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a55c83cb063738dfaa0cb8d0dd093f595">FALSE</a>.
                  </li>
                </ul>

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

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L20005">20005</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="ab427786be67e76d925cf603e7fe07d07" />

  <h2 className="memtitle"><span className="permalink"><a href="#ab427786be67e76d925cf603e7fe07d07">◆ </a></span>CreateDirectoryAsync() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> > kinetica.Kinetica.CreateDirectoryAsync </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_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">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

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

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

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L19941">19941</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a2ce69494aa9b4e26e725788103ec6159" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1CreateDirectoryResponse">CreateDirectoryResponse</a> > kinetica.Kinetica.CreateDirectoryAsync </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">directory\_name</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

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

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

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

            <tr>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a36fde2b27560bf951502c6bf15e864d7">CREATE\_HOME\_DIRECTORY</a>: When set, a home directory is created for the user name provided in the value. The <span className="em">directory\_name</span> must be an empty string in this case. The user must exist. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#af7836dec4c9900e9ea014c023978b77b">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/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#aba768d32002b40ef872a43106a19454b">NO\_ERROR\_IF\_EXISTS</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a2b636bf67846dd98d2c63c503c2941e7">TRUE</a>, does not return an error if the directory already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a2b636bf67846dd98d2c63c503c2941e7">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a55c83cb063738dfaa0cb8d0dd093f595">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateDirectoryRequest_1_1Options#a55c83cb063738dfaa0cb8d0dd093f595">FALSE</a>.
                  </li>
                </ul>

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

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L20069">20069</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>
</div>
