1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-04 22:14:37 +02:00

50 lines
1.0 KiB
Markdown
Raw Normal View History

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