#
/list
#
Route Details
#
GET /list/{"directory_path"}
Lists the file in a given directory. Lists root directory if unspecified.
#
Request
Method:
HTTP GET
Path parameter {directory_path}:
/path/to/directory
#
Response
Example 200 response body:
Response body is an array containing objects of the following format:
{
"name": "file_or_folder_name",
"size": 0,
"created": "1970-01-01T00:00:00Z",
"modified": "1970-01-01T00:00:01Z",
"isDirectory": true
}
Response body will contain additional key metadata
if the option is enabled in config.yaml
and isDirectory
is true.
{
"name": "file_or_folder_name",
"size": 0,
"created": "1970-01-01T00:00:00Z",
"modified": "1970-01-01T00:00:01Z",
"isDirectory": true,
"metadata": {
"color": "#ffffff"
}
}