browse
browse
These requests can be used to browse the file system. Given a path (relative to the working directory or absolute), it will respond with the full absolute path as well as a list of files and a list of directories inside it.
Requests look as follows:
{
"browse": {
"path": "/path/here" //If empty, the current working directory is assumed
}
}
And responses look as follows:
{
"browse":{
//The full absolute folder path
"path":[
"path":"/tmp/example"
],
//An array of strings showing all files
"files":[
"file1.dtsc",
"file2.mp3",
"file3.exe"
],
//An array of strings showing all subdirectories
"subdirectories":[
"folder1"
],
}
}