Adds a new child node to the filesystem path.
Adds a new child node to the filesystem path.
the node name.
the new file descriptor with the updated path
Deletes the file associated with the file descriptor
Deletes the file associated with the file descriptor
true
if the delete was successful, false
otherwise.
Downloads the file to the given local destination.
Downloads the file to the given local destination. Both the source and the destination must point to a file.
the local destination to which this file should be downloaded. The path must be absolute path to the final file.
downloads the file to filename + ".tmp" and renames it to the original name if the download was successful.
true
if the download was successful, false
otherwise.
Returns true if the file pointed by the file descriptor exists
Returns true if the file pointed by the file descriptor exists
true if the file pointed by the file descriptor exists
Returns true if the fd points to a directory
Returns true if the fd points to a directory
true if the fd points to a directory
Lists the files in the current file descriptor directory
Lists the files in the current file descriptor directory
a iterator of file descriptors
Lists all files down the file hierarchy tree that whose relative path match the given prefix
Lists all files down the file hierarchy tree that whose relative path match the given prefix
the prefix to match given each file relative path to the current directory
a iterator of file descriptors
Creates intermediary directories
Creates intermediary directories
true if the creation of successful, false otherwise.
The name of the file associated with the file descriptor.
The name of the file associated with the file descriptor.
the file name.
Returns the file descriptor n
node up in the filesystem path.
Returns the file descriptor n
node up in the filesystem path.
the number of parent nodes to go back.
the file descriptor n
node up in the filesystem path.
Returns the unique identifier of this file in its location.
Returns the unique identifier of this file in its location.
the unique identifier of this file in its location.
The size of the file associated with the file descriptor.
Returns an input stream for the contents of this file.
Returns an input stream for the contents of this file.
an input stream for the contents of this file.
Uploads an input stream to this file's location.
Uploads an input stream to this file's location. The target must point to a file.
the input stream that should be uploaded.
the input stream length (leaving this as None
can have performance implications)
true
if the upload was successful, false
otherwise.
Uploads a local file to this file's location.
Uploads a local file to this file's location. Both the source and the target must point to a file.
the local file that should be uploaded. The path must be absolute path to the final file.
true
if the upload was successful, false
otherwise.
Adds a new child node to the filesystem path.
Adds a new child node to the filesystem path.
the node name.
the new file descriptor with the updated path
Changes the path of the file descriptor using unix's cd syntax related to the current directory.
Changes the path of the file descriptor using unix's cd syntax related to the current directory. Ex: Go back to directories: ../.. Go to child directories: foo/bar Go to sibling directory: ../foo Absolute path changes are not supported.
the cd command
the new file descriptor with the updated path
Adds multiple new child nodes to the filesystem path.
Adds multiple new child nodes to the filesystem path.
the node names to add.
the new file descriptor with the updated path
Returns an iterator with the lines of this file.
Returns an iterator with the lines of this file.
an iterator with the lines of this file.
Returns a new file descriptor pointing to a sibling of the current file descriptor
Returns a new file descriptor pointing to a sibling of the current file descriptor
a function that returns a new name from the current name of the file descriptor
a new file descriptor pointing to a sibling of the current file descriptor
Returns a new file descriptor pointing to a sibling of the current file descriptor
Returns a new file descriptor pointing to a sibling of the current file descriptor
the file name of the new file descriptor
a new file descriptor pointing to a sibling of the current file descriptor
A representation of a file stored in an arbitrary location. A descriptor includes logic to copy files to and from a local filesystem, as well as filesystem navigation logic.