﻿---
sidebar_position: 10
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Create folder
 Creates an empty directory at the selected path



`Function CreateFolder(Val Token, Val Path) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Token | --token | String | &#x2714; | Token |
  | Path | --path | String | &#x2714; | Target path for creating the directory |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Dropbox

<br/>




```bsl title="1C:Enterprise/OneScript code example"
    Token = "sl.u.AFl4exnJTfu3ktlAB5SL9c6m8KfDrkILdZu1-5pPnA-_58JlWcvj507ryybadExtpMlE1MsEb1PApmydF-aSTQ6CkBMGtumKCpUlIP9a0uJkHkIkaFyZKqeVj1SCGwJdpyihz_DqlOHPP_qpFaOj52r4RJeMVmESiHRLyG0lv1J_a4gk0hqu0ykbRDMYh1F9iOg7QzbHFlrj8b5HS5RJDMxAHSuuyNPBiR3Vnvd-MHtyHWTZs9k3krDn1Ytw6kMCMbnjEA2S4L0er3sryTh530nzCsFq4Z6IEObBeT1jIV6yoY9gdDM3WZkfbbVe2l0KUJ8xoS0v1Gv0_QU75Oa9bwQiGf2tnyzo6kGMO5r-x4nzHUEf0POg0s_715VXHU22mZNeNqbKJd6S5tcFxvv7SjNgqsuwXG7Lk7g0p25gecCJ_Epi34ZjaMVvTrR9WKSvNvZ8rtKyGpBXZrg3CLLdMsSjMUWxiW36RAFCBNBJRw73EnQ5BhzwhdeqUu3BF11KCawloX3I8nWOQm2c5f1OKgSAw0ZAPaHGySULVTf1NUe-z2c1Fq-ws_RedL0hnqbWV0v_VH07P3ioVrOOuAmt7QHHlS1h6HLWB1wmsw6IkJUWeCkWtNHgCKVzGNn-2JcnLrPOHhzWLeNi7oYWfzFQ-fyT3JMhEI8Ojjc3MiyGzvrkOFRkUy_0HPy30_MlnPhaPdnqlDuYH9agx8q2cdVuF4iA6pGYiGO...";
    Path  = "/New catalog";

    Result = OPI_Dropbox.CreateFolder(Token, Path);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint dropbox CreateFolder \
             --token "***" \
             --path "/New catalog"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint dropbox CreateFolder ^
             --token "***" ^
             --path "/New catalog"
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "metadata": {
  "name": "New catalog",
  "path_lower": "/new catalog",
  "path_display": "/New catalog",
  "id": "id:kJU6-a-pT48AAAAAAAAclw"
 }
}
```
