1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-27 12:32:33 +02:00

66 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 10
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Create folder
Creates an empty directory at the selected path
`Function CreateFolder(Val Token, Val Path) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✔ | Target path for creating the directory |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-22 00:14:15 +03:00
Token = "sl.B_P83AtWK3iWmiaVVtO7xtmH-oAB1JFAuYM0O4cp24jpCem-7yD8_3nHrlvjtoWiI7T4kRh7Yx...";
2024-10-15 10:16:04 +03:00
Path = "/New catalog";
Result = OPI_Dropbox.CreateFolder(Token, Path);
```
2024-10-20 22:36:03 +03:00
<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>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"metadata": {
"name": "New catalog",
"path_lower": "/new catalog",
"path_display": "/New catalog",
"id": "id:kJU6-a-pT48AAAAAAAAclw"
}
}
```