Skip to content

[ESP720]

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
  • 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 be 720

  • status status of command, should be ok

  • data content 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:57
Files: 1, Dirs :0
Total: 128.00 KB, Used: 100.00 KB, Available: 28.00 KB