Get list of files
Gets a list of files with or without directory selection
- Parameters
- Advanced call ?
Function GetFilesList(Val Token, Val Path = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Auth token |
| Path | --path | String | ✖ | Selection of files by catalog. All if not filled in |
Returns
Map Of KeyAndValue - serialized JSON response from Neocities
| 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) |
tip
Neocities API docs: neocities.org/api
1C:Enterprise/OneScript code example
Token = "f1e616e20ab5893b...";
Path = "test";
Result = OPI_Neocities.GetFilesList(Token, Path);
- Bash
- CMD/Bat
oint neocities GetFilesList \
--token "***"
oint neocities GetFilesList ^
--token "***"
Result
{
"result": "success",
"files": [
{
"path": "test/gif.gif",
"is_directory": false,
"size": 805189,
"created_at": "Tue, 26 May 2026 14:18:52 -0000",
"updated_at": "Tue, 26 May 2026 14:18:52 -0000",
"sha1_hash": "8f92377c07daab3231778f947e2cca1780a77991"
},
{
"path": "test/pic1.png",
"is_directory": false,
"size": 2114023,
"created_at": "Tue, 26 May 2026 14:18:52 -0000",
"updated_at": "Tue, 26 May 2026 14:18:52 -0000",
"sha1_hash": "104e16d3f54d5a7bde58d5282f375591de694330"
}
]
}