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/Get-list-of-folder-files.mdx
Vitaly the Alpaca (bot) fb1d5eb506 Main build (Jenkins)
2025-10-08 00:46:26 +03:00

212 lines
7.5 KiB
Plaintext
Vendored

---
sidebar_position: 2
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
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';
# 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`
| 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 |
Returns: HTTPResponse - Get list of folder files
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Path = "/New";
Token = "sl.u.AGCV5bFAEGMHdc0cW0wuRSU8nduEEjAsajtP1ta3Vw4D6k7ivqMiVj2QuaBqy1n9RZhUrftIcKDKh8XtftjcKoA4KBUyY3W5fiUANoMPG6j3Q7Cj--vAoOk9aDWk2ZvsDH_hLA1L5-PlvgA4SyTbNJb8QK3AJh4UX71iKOJUYtb1YDy81VRf4XWiBHyXMoD14rr07VggYfiAIHaMpgJUxkwVSGbiPxD7UlBK8zJC5kwOJqBss7pc5i7Tslne5nt2fno80MmEV_EJoi75M5kpCP2CdLEdChfFLwFNADZq6ox3OGxJ4d8TFI6aZ7Ue1yGJd67Ye2LJ3GnmpkdcKyH1Ovh_sV4slW46OLh1dJQbFdNrgILYXHaoJJrMDJodn6YR8cTWmWQ7IIlw-trIEcIBbPzPtiI3F7xW_5KGD7C3NkmDaCUD4PBnaWI-XplRHQR_RQjMTqW3SWO0sg6RcriVDAKyA6RB8zS6qwfwj23i1RwDM0e2nwrgl6XG9RSKhGYHy1jj2d_YAU9vxw61x2VFF1ILNS7833SYZ5kIDrjjhqUeKD5MoCAz6YxyE0xfSZhRZ4B8ONLeSf6SOOYVSKLi4DxMxurzFC90j0u6KFVsdYiUfeoTXarehRMafAbSnszOJcXQqevbDfsGKtbbHFQUyCaoUkia90jKnIB5W1q2Ksp1QKUcKudSiCPRT7DPRXE1LGK2WsjfmdMJyqbBSb86Yfa0ZJ8i0QT...";
Result = OPI_Dropbox.GetListOfFolderFiles(Token, Path, True);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox GetListOfFolderFiles \
--token "***" \
--path "/New" \
--detail true
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox GetListOfFolderFiles ^
--token "***" ^
--path "/New" ^
--detail true
```
</TabItem>
</Tabs>
```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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4f4bd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4f5bd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4f6bd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4f7bd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4f8bd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4f9bd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4fabd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4fbbd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4fcbd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4fdbd841553",
"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",
"server_modified": "2025-10-07T14:42:34Z",
"rev": "64092941ad4febd841553",
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
}
],
"cursor": "AASh6X88LoWbd5jAH83HUC99jsJthoR8zSbwDBlfjOa7UAtxDfIyVwv1FxdMqs5rRmXhuot9ePqTi2kZI3_f1DaVnZj5rLXl5sPZNhDP7iR6gaVGaby0kxhc8-jVB_lwbtC1vFtUdrn-471IlmYkTjhdiksgdwoCmqYpi5Sup8iBv5gDQNLzEn5MQn8zSCSEjf9KFKcVMdPbTabWwsZ5YZbQ",
"has_more": false
}
```