List files on /FS or defined repository
[ESP720](Root) json=(no) pwd=(admin password)
-
json=no the output format can be in JSON or plain text
-
pwd=(admin password) 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
Section titled “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" }}-
cmdId of requested command, should be720 -
statusstatus of command, should beok -
datacontent of response, here the list of files on /FS or defined repository -
Text
Directory on Flash : / index.html.gz 88.67 KB 2023-11-05 11:57:57Files: 1, Dirs :0Total: 128.00 KB, Used: 100.00 KB, Available: 28.00 KB