Read tree function

<< Click to Display Table of Contents >>

Navigation:  Managing Syncplify.me Server! > REST API > SuperAdmin API > Utility >

Read tree function

Reads a directory list from the server.

 

Request

Method

URL

POST

/smserver/smsadm.ReadTree

RAW

POST /smserver/smsadm.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