Skip to main content

Get list of files

Gets a list of files with or without directory selection

Function GetFilesList(Val Token, Val Path = "") Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringAuth token
Path--pathStringSelection of files by catalog. All if not filled in

Returns: Map Of KeyAndValue - serialized JSON response from Neocities

tip

Neocities API docs: neocities.org/api


1C:Enterprise/OneScript code example
    Token = "f1e616e20ab5893b...";
Path = "test";

Result = OPI_Neocities.GetFilesList(Token, Path);
    oint neocities GetFilesList \
--token "***"
Result
{
"result": "success",
"files": [
{
"path": "test/gif.gif",
"is_directory": false,
"size": 805189,
"created_at": "Tue, 06 Jan 2026 14:27:18 -0000",
"updated_at": "Tue, 06 Jan 2026 14:27:18 -0000",
"sha1_hash": "8f92377c07daab3231778f947e2cca1780a77991"
},
{
"path": "test/pic1.png",
"is_directory": false,
"size": 2114023,
"created_at": "Tue, 06 Jan 2026 14:27:18 -0000",
"updated_at": "Tue, 06 Jan 2026 14:27:18 -0000",
"sha1_hash": "104e16d3f54d5a7bde58d5282f375591de694330"
}
]
}