/api/v0/files/ls
List directories in the local mutable namespace.
Arguments
arg[string]: Path to show listing for. Defaults to '/'. Required: no.long[bool]: Use long listing format. Required: no.U[bool]: Do not sort; list entries in directory order. Required: no.
Response
On success, the call to this endpoint will return with 200 and the following body:
{
"Entries": [
{
"Hash": "<string>",
"Name": "<string>",
"Size": "<int64>",
"Type": "<int>"
}
]
}
cURL Example
curl -X POST "http://127.0.0.1:5001/api/v0/files/ls?arg=<path>&long=<value>&U=<value>"
Last updated