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
{
"entries": [
{
".tag": "file",
"name": "Dogs.mp3",
"path_lower": "/new/dogs.mp3",
"path_display": "/New/Dogs.mp3",
"id": "id:kJU6-a-pT48AAAAAAAAACA",
"client_modified": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e848bd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e849bd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e84abd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e84bbd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e84cbd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e84dbd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e84ebd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e84fbd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e850bd841553",
"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": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e851bd841553",
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "url_doc (10).docx",
"path_lower": "/new/url_doc (10).docx",
"path_display": "/New/url_doc (10).docx",
"id": "id:kJU6-a-pT48AAAAAAABpLw",
"client_modified": "***",
"server_modified": "2026-05-26T14:09:36Z",
"rev": "652b90b86e852bd841553",
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "mydoc.docx",
"path_lower": "/new/mydoc.docx",
"path_display": "/New/mydoc.docx",
...