Read Tree
Reads a directory list on the server.
Request
Method |
URL |
POST |
/smserver/sms.ReadTree |
RAW |
POST /smserver/sms.ReadTree HTTP/1.1 Cache-Control: no-cache Connection: Keep-Alive Pragma: no-cache Content-Type: application/json; charset=UTF-8 Accept: */* Authorization: Bearer XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[ { "currentdir" : "\\" } ] |
Explained |
Reads the list of all folders underneath the specified current directory.
currentdir: directory to acquire the subdir list of |
Response
Method |
URL |
RAW |
Accept-Encoding: synlz,gzip Content-Type: application/json; charset=UTF-8
{"result":[ { "CurrentDir" : "\\", "PreviousDir" : "", "List" : [ "C:\\" ] } ],"id":7721} |
Explained |
Returns the list of all subdirectories of the specified folder.
CurrentDir: the directory we requested the list of PreviousDir: the previous directory (where we were before) List: array containing the list of all subdirectories |