2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 2
2025-05-05 11:15:20 +03:00
description: Get list of folder files 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
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Dropbox]
2024-10-15 10:16:04 +03:00
---
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
# Get list of folder files
Gets the list of the first files in the directory or continues getting the next ones when the cursor is specified
`Function GetListOfFolderFiles(Val Token, Val Path = "", Val Detailed = False, Val Cursor = "") Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✖ | Path to the directory. Optional if the cursor is specified |
| Detailed | --detail | Boolean | ✖ | Add information fields for mediafiles |
| Cursor | --cursor | String | ✖ | Cursor from the previous request to get the next set of files |
2024-10-15 10:16:04 +03:00
Returns: HTTPResponse - Get list of folder files
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2025-09-12 20:23:31 +03:00
Path = "/New";
2025-10-20 19:41:52 +03:00
Token = FunctionParameters["Dropbox_Token"];
2025-09-12 20:23:31 +03:00
Result = OPI_Dropbox.GetListOfFolderFiles(Token, Path, True);
2024-10-15 10:16:04 +03:00
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox GetListOfFolderFiles \
2024-10-22 08:59:24 +03:00
--token "***" \
2025-09-16 09:07:33 +03:00
--path "/New" \
--detail true
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox GetListOfFolderFiles ^
2024-10-22 08:59:24 +03:00
--token "***" ^
2025-09-16 09:07:33 +03:00
--path "/New" ^
--detail true
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"entries": [
{
".tag": "file",
"name": "Dogs.mp3",
"path_lower": "/new/dogs.mp3",
"path_display": "/New/Dogs.mp3",
"id": "id:kJU6-a-pT48AAAAAAAAACA",
"client_modified": "2024-05-15T16:58:30Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c3334bd841553",
2024-10-15 10:16:04 +03:00
"size": 9229352,
"is_downloadable": true,
"content_hash": "376f728ef041d9cef08406f16debc12de89d83130e69c66a817fd834d2d82dc2"
},
{
".tag": "file",
"name": "url_doc (1).docx",
"path_lower": "/new/url_doc (1).docx",
"path_display": "/New/url_doc (1).docx",
"id": "id:kJU6-a-pT48AAAAAAAALvg",
"client_modified": "2024-07-15T17:40:28Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c3335bd841553",
2025-09-14 15:36:38 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (2).docx",
"path_lower": "/new/url_doc (2).docx",
"path_display": "/New/url_doc (2).docx",
"id": "id:kJU6-a-pT48AAAAAAAA24g",
"client_modified": "2025-02-05T10:19:29Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c3336bd841553",
2025-09-14 15:36:38 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (3).docx",
"path_lower": "/new/url_doc (3).docx",
"path_display": "/New/url_doc (3).docx",
"id": "id:kJU6-a-pT48AAAAAAABDNA",
"client_modified": "2025-05-04T21:27:07Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c3337bd841553",
2025-09-14 15:36:38 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (4).docx",
"path_lower": "/new/url_doc (4).docx",
"path_display": "/New/url_doc (4).docx",
"id": "id:kJU6-a-pT48AAAAAAABJpA",
"client_modified": "2025-07-01T17:39:19Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c3338bd841553",
2025-09-14 15:36:38 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (5).docx",
"path_lower": "/new/url_doc (5).docx",
"path_display": "/New/url_doc (5).docx",
"id": "id:kJU6-a-pT48AAAAAAABSFA",
"client_modified": "2025-08-17T10:03:28Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c3339bd841553",
2025-09-14 15:36:38 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (6).docx",
"path_lower": "/new/url_doc (6).docx",
"path_display": "/New/url_doc (6).docx",
"id": "id:kJU6-a-pT48AAAAAAABSTA",
"client_modified": "2025-08-31T15:14:04Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c333abd841553",
2025-09-14 15:36:38 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (7).docx",
"path_lower": "/new/url_doc (7).docx",
"path_display": "/New/url_doc (7).docx",
"id": "id:kJU6-a-pT48AAAAAAABSaA",
"client_modified": "2025-08-31T16:29:58Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c333bbd841553",
2025-09-14 15:36:38 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (8).docx",
"path_lower": "/new/url_doc (8).docx",
"path_display": "/New/url_doc (8).docx",
"id": "id:kJU6-a-pT48AAAAAAABShA",
"client_modified": "2025-08-31T20:43:05Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c333cbd841553",
2025-09-14 15:36:38 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (9).docx",
"path_lower": "/new/url_doc (9).docx",
"path_display": "/New/url_doc (9).docx",
"id": "id:kJU6-a-pT48AAAAAAABUqg",
"client_modified": "2025-09-08T13:28:43Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c333dbd841553",
2024-10-15 10:16:04 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "mydoc.docx",
"path_lower": "/new/mydoc.docx",
"path_display": "/New/mydoc.docx",
"id": "id:kJU6-a-pT48AAAAAAAAABw",
"client_modified": "2024-05-14T16:49:41Z",
2025-10-15 14:32:00 +03:00
"server_modified": "2025-10-15T09:47:21Z",
"rev": "6412f630c333ebd841553",
2024-10-15 10:16:04 +03:00
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
}
],
2025-10-15 14:32:00 +03:00
"cursor": "AATP9XEUfwfsxf_90a2JTqUo2cr9SWVw9UUjUHgtkDklpicXn7S4P3pXGL4ovCV4yYLTQSfiWYbf60AptOY7Nhy3fcYZ4-JZFCSIAGbLRtdskxA8Gy7SAXZkIVEAI4Veuqoyg1hJQDUWylq-pNBQ4ESxMhob7DP1OYbn_JR9fIE95yhDWF8kuyGW20uKSafasi-f8eJWu8Zdb3ywWygUH4sM",
2024-10-15 10:16:04 +03:00
"has_more": false
}
```