app.files:
Listing files in a directory
app.files.list(path?) returns the entries of a directory. The path defaults to "/".
Reading a file
app.files.read(path) returns a Node.js Buffer with the file contents, or undefined when the file is missing.
Reading a large file fails with
FILE_TOO_LARGE (413).Creating or overwriting a file
app.files.create(file, fileName, path?) writes a file at path/fileName. The path defaults to "/".
- From a Buffer
- From a local path
Editing a file
app.files.edit(file, path) overwrites the contents of an existing file at path.
Moving or renaming a file
app.files.move(path, newPath) moves or renames a file or directory.
Deleting a file or directory
app.files.delete(path) deletes a file or an entire directory.

