--- sidebar_position: 12 description: Download folder and other functions to work with Dropbox in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Dropbox] --- 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
```bsl title="1C:Enterprise/OneScript code example" Token = "sl.u.AF6TUJY99kQGPaL42fiAlTqiSXFFkcFy_JI4IywuqbJWWJLt_8EkHrGrO5nUfc87VkF4OYiEUw3pfWdUWxoMbpR9Wr_zXkvnNuJnd5_YnSBexWpntYlROt_CghzDjBJi9zz-iiCXGEp5taE7dq9_SBR2LN_2aFkr0pMb-ygSoV_2ynL75B4pr2bPZjlTOAL_c-EuthqJPTl_5EB-rq-q1O4w1ukNN_Ii-l9COn9kSPMkKPaZeWybauk0kYOkXxy_yKUGy5a27TsKR9jjLc80pKNEgo-mLTnxSmnxN7LH8tESdbABdOTfLJvZt13d-xEg9vvSKC6smcpZSGlRYMihHFgy20bEd0GN0uxHT0LWzYd-bH-GhfconoCUyDkFOwi180BJ90SM3462vstnsvXQ0U_XMHB-jB-j7JlkP62b7FcZ3JJSFRJ4cWuqqvqNO-_TYVKr7GaQdpTPQFgBMBCG6l4FI59QDqdgfdZ8LHrSXcP1pzCt8SrzZSWesFYYOj9odK9oU6V_Ul63-37MX9GH9ebDSQV8U5F3gsrvq4UIiCfnJaLn0d-04DZ5JmL4jONXdJnTh1d9-BsEXQ1cFJCnEPnf_PORK7rGW5K00DJsTHJd5Qlr1mfjAnUCF4iP8w4HkrgwKg8Uc5eeJSCKngVhCq_jWuRtvDaBuXiFNRwFzfG2pylnsbUceukTPk_rLgm-WEeAOAkzB4ZfRyKt2hrk5f0qvRSlB4-..."; Path = "/New"; Result = OPI_Dropbox.DownloadFolder(Token, Path); ``` ```bash oint dropbox DownloadFolder \ --token "***" \ --path "/New" ``` ```batch oint dropbox DownloadFolder ^ --token "***" ^ --path "/New" ``` ```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… ```