Get list of files
Gets a list of files with or without directory selection
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
tip
Neocities API docs: neocities.org/api
1C:Enterprise/OneScript code example
Token = "7419cd51de4037f7...";
Path = "test";
Result = OPI_Neocities.GetFilesList(Token, Path);
Result = OPI_Neocities.GetFilesList(Token);
- Bash
- CMD/Bat
oint neocities GetFilesList \
--token "***" \
--path "test"
oint neocities GetFilesList ^
--token "***" ^
--path "test"
Result
{
"result": "success",
"files": [
{
"path": "test/gif.gif",
"is_directory": false,
"size": 805189,
"created_at": "Wed, 09 Oct 2024 06:27:52 -0000",
"updated_at": "Wed, 09 Oct 2024 06:27:52 -0000",
"sha1_hash": null
},
{
"path": "test/pic1.png",
"is_directory": false,
"size": 2114023,
"created_at": "Wed, 09 Oct 2024 06:27:52 -0000",
"updated_at": "Wed, 09 Oct 2024 06:27:52 -0000",
"sha1_hash": null
}
]
}