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) 87b272e58b Main build (Jenkins)
2025-09-12 20:23:31 +03:00

107 lines
4.0 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.AF_9qAQddOYvngYnVBSAXzIvKBvNsEuJhTNNgfIpZhZJCHvm4CNIkqUw6NakHi-jLUL2OhCRoqadyPYiGvNZrLFPQiVfLBNIhkWShlpu0Fi66Nz62RfOQhZLkAplG_-FrjnFL2aTwnWLVHppYX3IOBQhFMcguaO9giMAQ-jpszgrQQUzKs9Knbc2lGyC1yDFy-73ueGCGYqDmgq07qBFGLNl0LrCbyh2psNpKMedQEgYwdlvOXa8zXj9s114NPr0RtL_eBjm8Xn3Lv8kj9uRoPqxJg387BrEi3feoBt-JIb-xNU7JADm7GRHM_zn9qK9KQScPbOdh-sWTNnyfVFnq1pOcgjgqhSzb11GdoYgRQzeWOHLN-HED0rVBMx58eMUk4Yoq3nsZVE5U3PqdoPoH-AWti6d8dhW9hXpZzJA7UFSgq3x2GN1F6_sUvH1epTZ0GWYLdQI3nMveE9sKqIfp-U_XlCNPEhO_OswC2h3xCuMo1kIiaFj8bqCDyBfTI4hPhLhjsQv0rAHPoGuCOyAMKWNuUBl2HTUfXd7SE0u_LoY8YdarGacEjgahRdamWmFxK9SJd2vQQFVyB12TdLuqIv4TPyUPS9GccqnYGDNuTLh7ShI8t954ZC8FG6dVC4r2q0fwx7tqZVBWY4ttOn4sVD9dKAmqVOgJASMFE6FtSTz74OXgPIpd5jlHr1sg0z7Pkbf2qOdvSj1-k7v-fV0S0P5p7jbFWr...";
Result = OPI_Dropbox.GetListOfFolderFiles(Token, Path, True);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox GetListOfFolderFiles \
--token "***" \
--path "/New"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox GetListOfFolderFiles ^
--token "***" ^
--path "/New"
```
</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": "2024-10-09T06:18:27Z",
"rev": "6240538d38b44bd841553",
"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": "2024-10-09T06:18:27Z",
"rev": "6240538d38b45bd841553",
"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": "2024-10-09T06:18:27Z",
"rev": "6240538d38b46bd841553",
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
}
],
"cursor": "AAFjPjioXCUm-cvSmWhTXvwp-AUzcBlNDHgvyydaqo7QT6jkyTA4MLAzBdmSgdT0fsc_ssKPYWcv_tzh1hMAoOwuN09jJ9FS88bbx5mR6D4wXUd5v05GKJ_h52Nv88UOMiXah5SPwISriNOY3Vcez_oKLPyWrJ5pAuY1emSszhyeI7KLukeysjS8d79KvyQzi99nJ8smVQIQATrr2n0ioDwE",
"has_more": false
}
```