List files on /FS or defined repository
Input
[ESP720]<Root> json=<no> pwd=<admin password>
-
json=no the output format can be in JSON or plain text
-
pwd=
the admin password if authentication is enabled -
Root
- if Root is empty, it will list files on /FS
- if Root is not empty, it will list files on defined repository
Output
- json
{
"cmd":"720",
"status":"ok",
"data":{
"path":"/",
"files":[
{"name":"index.html.gz","size":"88.67 KB","time":"2023-11-05 11:57:57"}
],
"total":"128.00 KB",
"used":"100.00 KB",
"occupation":"78"
}
}
cmd
Id of requested command, should be720
status
status of command, should beok
-
data
content of response, here the list of files on /FS or defined repository -
Text