Methods
delete(fileObject) → {Promise}
See the documentation of the delete() method in the parent class for the definition of how this method must behave. This implements the requirements specified there for a file system representing the user's Dropbox, as defined at the documentation for this class.
Parameters
-
fileObject
Object
as documented in the FileSystem class
Returns
-
Promise
as documented in the abstract method of the parent class
Source
has(fileObject) → {Promise}
See the documentation of the has() method in the parent class for the definition of how this method must behave. This implements the requirements specified there for a file system representing the user's Dropbox, as defined at the documentation for this class.
Because this is a flat file system, any file object with a nonempty path member will not exist, regardless of its filename, and will therefore result in a false value being resolved from the promise.
Parameters
-
fileObject
Object
as documented in the FileSystem class
Returns
-
Promise
as documented in the abstract method of the parent class
Source
list(fileObject) → {Promise}
See the documentation of the list() method in the parent class for the definition of how this method must behave. It implements the requirements specified there for a file system based on the user's Dropbox, as defined at the documentation for this class.
Parameters
-
fileObject
Object
as documented in the FileSystem class
Returns
-
Promise
as documented in the abstract method of the parent class
Source
read(fileObject) → {Promise}
See the documentation of the read() method in the parent class for the definition of how this method must behave. It implements the requirements specified there for a file system based on the user's Dropbox, as defined at the documentation for this class.
Any file object that does not have a .filename
member (including the
case where the parameter is omitted) will be interpreted as a folder (and
if the .path
member is omitted, it counts as the root).
Parameters
-
fileObject
Object
as documented in the FileSystem class
Returns
-
Promise
as documented in the abstract method of the parent class
Source
write(fileObject) → {Promise}
See the documentation of the write() method in the parent class for the definition of how this method must behave. This implements the requirements specified there for a file system representing the user's Dropbox, as defined at the documentation for this class.
Parameters
-
fileObject
Object
as documented in the FileSystem class
Returns
-
Promise
as documented in the abstract method of the parent class