1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/md/Dropbox/File-and-directory-management/Download-folder.mdx
Vitaly the Alpaca (bot) e5f231d725 Main build (Jenkins)
2025-02-18 14:08:09 +03:00

59 lines
2.0 KiB
Plaintext
Vendored

---
sidebar_position: 12
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Download folder
Downloads a zip archive with the contents of the specified directory
`Function DownloadFolder(Val Token, Val Path) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✔ | Path or ID of the directory |
Returns: BinaryData - binary data of the zip archive with the contents of the directory
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "sl.u.AFjZZvDRnMX4npjrtxVeuUxH0ZoYuyU8Brj85ct7CT-kIOdfiBjTkkZ1jNBgYp8SDmA0aJk0mHHmo8UhNjYlo243OQjbPLdzH-diX0pE6ZPmbqDifIlyj2T1tdsXRHqwh3_VzCtL0uZa5PPuYrGowuzoXPCgRlhg2zz5f_a-A6PeXc0i1Qy1a-xrpoFklGQO4vtBJ-WdxxcjidrzaekSlkYSuAn_ZZs0IgpnhdpPrrqHleDkRE9MLrqg33WW-B_9_k2YmBwH7ABLa27ok9kxxQ0MdNCtG_7X8UpqjhYEsLuRi03EyC1uii2FSTpB0UjSKRk-7ATeUQUU58WsF0s_KHg_FXUnv1PXrr0vVz5XGLEjl6LYGrVetJIrSfAWpCCcq0gH7m6E4tIqbB8Zq8zY5-6QTiTWDK7mwmesSNPxlN2lDF5M2cvXP3vk7BBNjHVRE0PxHr4xT4xWmPBVTtO2aw8SaCHUhIU106KfANFQT0fDJ-cO01R_wOEqbDGkvy7hZXFbILWgPN-wdD7c9zCQEbOcdByFu3osVCLSwIzwqDn94H4yf2EixwAGcPwApnBMx-q0ii9ifQtE2gR-gYr77kVSiUwGjqUpl2ijEEKHHz1Yx1UDlSVOlpy4ee8IOZNyQuN3df6ZS8LMNKeGA05AVWumlthRVa8S0ah45gzYnTRX5lHplPwbWTPDL1TPOWU2dU-hA9cCGi91BRvfMVkOnbrGwNml8KY...";
Path = "/New";
Result = OPI_Dropbox.DownloadFolder(Token, Path);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox DownloadFolder \
--token "***" \
--path "/New"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox DownloadFolder ^
--token "***" ^
--path "/New"
```
</TabItem>
</Tabs>
```json title="Result"
NOT JSON: 50 4B 03 04 14 00 00 08 00 00 78 94 48 59 00 00 00 00 00 00 00 00 00 00 00 00 04 00 09 00 4E 65 77 2F 55 54 05 00 01 84 7B 05 67 50 4B 03 04 14 00 08 08 00 00 4F 87 AF 58 00 00 00 00 00 00 00…
```