2024-06-05 10:19:46 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 10
|
|
|
|
---
|
|
|
|
|
|
|
|
# Create folder
|
|
|
|
Creates an empty directory at the selected path
|
|
|
|
|
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
`Function CreateFolder(Val Token, Val Path) Export`
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
| Path | --path | String | Target path for creating the directory |
|
|
|
|
|
|
|
|
|
2024-06-06 15:33:52 +03:00
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-07-10 14:05:58 +03:00
|
|
|
<br/>
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
```bsl title="Code example"
|
2024-08-09 17:15:52 +03:00
|
|
|
Token = "sl.B6AQWp9MlZlz4iaf41whVKxX9-MXeCiQhPRe4YIRxFmZ3zHsdjmOAatzgaWVhqmlIOvDD6WIUQ...";
|
2024-06-05 10:19:46 +00:00
|
|
|
Path = "/New catalog";
|
|
|
|
|
|
|
|
Result = OPI_Dropbox.CreateFolder(Token, Path);
|
|
|
|
```
|
2024-07-10 11:59:55 +03:00
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
|
|
|
oint dropbox CreateFolder --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --path %path%
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-07-10 14:11:17 +03:00
|
|
|
{
|
2024-06-05 10:19:46 +00:00
|
|
|
"metadata": {
|
|
|
|
"name": "New catalog",
|
|
|
|
"path_lower": "/new catalog",
|
|
|
|
"path_display": "/New catalog",
|
|
|
|
"id": "id:kJU6-a-pT48AAAAAAAABZA"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|