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
- Parameters
- Advanced call ?
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
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Path = "/New";
Token = "sl.u.AGHisBACq5S_OZLr0m5nlPclkUHTuC7bAcgx3qLD4RSIOG5yZu6wao8-mXwEbhs-TC10gz2EnYJ0qnIbRIXAc5jF7-zCyw_9T9sJEQcuhb30g9b3M_s1gwf0Q5i2URlUF4mEJS1EpG50Dk9mH7NpV86q1Ww4P3EoF-zKI4UT6_zwhAixwV7CEDZttPL1sddquXuUIFynYHnnUlwx4W9ZYr7WuZVKBuJUnWzqdBuDnps0vABsr0lrZJtIx6xWKKyC9n3GQkJHr0jNoXx5OLPKFDLzuRK7azj57SJn4OebZ66ZyL-EpIQPaySFlu44IPvPWgi6bHJhLYPozUp3TmXdun6j4ydleevhoJcEuDfc1XuaF-Vr77ZRs6ab6NCgXufbzlim7vi2MB-GiSm6wXuBAknWqiMT4GudYhPSKCDeFJbQWk3a1tOzV0LpAaG2e3kDQTysjtQtPgQaqgw0ntx0Gmm79z76vrXP4EyXMnRsP4qJnTxROtQPBXFrsPo4n4SfYHCvJasa77mMqWeZESfwezDehGhG8Rkhw-PIJX7VaGvJZv1IR2ziy_n1toMbug6sewy1leCD2CmPZy5MOX5bWWmsiETf3rGBfB7QTFnO04J77U15tVCc53yN-1pB6HuOQB7L_xJLBUKxMJCI96oVnAP7uTP4K1VBkI6CVAVg1rIR2PT9RKTotrWhMGFmPpSrU2muAsgy6AHbalhikVFnw6JgV8t0saz...";
Result = OPI_Dropbox.GetListOfFolderFiles(Token, Path, True);
- Bash
- CMD/Bat
oint dropbox GetListOfFolderFiles \
--token "***" \
--path "/New" \
--detail true
oint dropbox GetListOfFolderFiles ^
--token "***" ^
--path "/New" ^
--detail true
Result
{
"cursor": "AAXBQCIcPXi8rij0EMBJMJNltS_mx7HeEI0FKH8TY4RFD9NjkyS_22UjhJ-RNAApwCvwhtjzTH5Y3eM4R0_3S7-D98qf-GJ5_0jl6jJ8Atktc7dulhvCgPta_hNQ5zo_UaEjBEiBxFHrEYkiALv7cOAOyE5joxhMEVVI0GJ_ojeHl09FctYc3dNUa-tFzaRbhK-qheuDDwHgOUqdF5oMv6jz",
"entries": [
{
".tag": "file",
"client_modified": "***",
"content_hash": "376f728ef041d9cef08406f16debc12de89d83130e69c66a817fd834d2d82dc2",
"id": "id:kJU6-a-pT48AAAAAAAAACA",
"is_downloadable": true,
"name": "Dogs.mp3",
"path_display": "/New/Dogs.mp3",
"path_lower": "/new/dogs.mp3",
"property_groups": [],
"rev": "656f9dcff223cbd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 9229352
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAAALvg",
"is_downloadable": true,
"name": "url_doc (1).docx",
"path_display": "/New/url_doc (1).docx",
"path_lower": "/new/url_doc (1).docx",
"property_groups": [],
"rev": "656f9dcff223dbd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAAA24g",
"is_downloadable": true,
"name": "url_doc (2).docx",
"path_display": "/New/url_doc (2).docx",
"path_lower": "/new/url_doc (2).docx",
"property_groups": [],
"rev": "656f9dcff223ebd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAABDNA",
"is_downloadable": true,
"name": "url_doc (3).docx",
"path_display": "/New/url_doc (3).docx",
"path_lower": "/new/url_doc (3).docx",
"property_groups": [],
"rev": "656f9dcff223fbd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAABJpA",
"is_downloadable": true,
"name": "url_doc (4).docx",
"path_display": "/New/url_doc (4).docx",
"path_lower": "/new/url_doc (4).docx",
"property_groups": [],
"rev": "656f9dcff2240bd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAABSFA",
"is_downloadable": true,
"name": "url_doc (5).docx",
"path_display": "/New/url_doc (5).docx",
"path_lower": "/new/url_doc (5).docx",
"property_groups": [],
"rev": "656f9dcff2241bd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAABSTA",
"is_downloadable": true,
"name": "url_doc (6).docx",
"path_display": "/New/url_doc (6).docx",
"path_lower": "/new/url_doc (6).docx",
"property_groups": [],
"rev": "656f9dcff2242bd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAABSaA",
"is_downloadable": true,
"name": "url_doc (7).docx",
"path_display": "/New/url_doc (7).docx",
"path_lower": "/new/url_doc (7).docx",
"property_groups": [],
"rev": "656f9dcff2243bd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAABShA",
"is_downloadable": true,
"name": "url_doc (8).docx",
"path_display": "/New/url_doc (8).docx",
"path_lower": "/new/url_doc (8).docx",
"property_groups": [],
"rev": "656f9dcff2244bd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAABUqg",
"is_downloadable": true,
"name": "url_doc (9).docx",
"path_display": "/New/url_doc (9).docx",
"path_lower": "/new/url_doc (9).docx",
"property_groups": [],
"rev": "656f9dcff2245bd841553",
"server_modified": "2026-07-19T17:10:14Z",
"size": 24069
},
{
".tag": "file",
"client_modified": "***",
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c",
"id": "id:kJU6-a-pT48AAAAAAABpLw",
"is_downloadable": true,
"name": "url_doc (10).docx",
...