Expose the API to interact with a Content Server.
export interface ContentServer extends Server
|canMove||Returns a boolean indicating whether the underlying Content Server supports moving files.|
|createFile||Create a new file in the specified directory, letting the server specify its name.|
|deleteFile||Delete the file at the given path. If the file is a directory, its content will be recursively removed. Set |
|exist||Resolved if the path exists and rejected otherwise.|
|getFile||Retrieve the file found at the given path. If the file is a directory, list all its accessible children, by default recursively. |
|mkDir||Create an empty directory at the given path. Set |
|moveFile||Move an existing file to a different location.|
|report||Trigger the generation of a report. If the feature is not enabled server-side, the returned promise will be rejected.|
|updateFile||Create a file at the given path or update an existing one. If the file already exists and no |
|updatePermissions||Update the permissions of the file at the given path.|
For all calls accepting
readers, if no permissions are given, they will default to the current username.