Listing files and folder can be done using the LS and LSTAT calls. These designed to mimic the the unix filesystem methods.
{"lstat": {"filename": "document1.txt","size:": 10234,"modtime": 1578531065,"is_dir": false}}
{"ls":[{"filename": "document1.txt","size:": 10234,"modtime": 1578531065,"is_dir": false},{"filename": "folder1","size:": 0,"modtime": 0,"is_dir": true}]}
{"error": "you do not have the right permissions"}
{"error": "we encountered an error"}
{"rename": true}
{"remove": true}