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 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
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
Deletes the file associated with the file descriptor
Deletes the file associated with the file descriptor
true
if the delete was successful, false
otherwise.
Deletes the directory associated with the file descriptor by recursively deleting all the directories and files inside it.
Deletes the directory associated with the file descriptor by recursively deleting all the directories and files inside it. Symbolic links are not followed and are just deleted as "regular" files.
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
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.
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
The Logger
object.
The Logger
object. This logger will have the same name as the concrete class
into which this trait is mixed-in.
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.
Reads the file pointed by the file descriptor and returns it in string format
Reads the file pointed by the file descriptor and returns it in string format
the contents of the file in string format
Renames the file pointed by the file descriptor
Renames the file pointed by the file descriptor
the file descriptor to be renamed to
a Some of the renamed file descriptor if successful, otherwise None.
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
The size of the file associated with the file descriptor.
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.
bytes to skip before reading the 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.
Writes the given byteArray to file pointed by the file descriptor
Writes the given byteArray to file pointed by the file descriptor
the byte array to write to the file
Writes the given string str
to the file pointed by the file descriptor
Writes the given string str
to the file pointed by the file descriptor
the string to write to the file