This package contains functions to perform file system based operations such as create, delete, rename the file/directory, and retrieve metadata of the file.
For an example on the usage of the operations, see the File Example.
Directory Listener is used to listen to a directory in the local file system. It notifies when new files are created in the directory or when the existing files are deleted or modified.
For an example on the usage of the operations, see the Directory Listener Example.
Represents the directory listener endpoint, which is used to listen to a directory in the local file system.
Retrieves the base name of the file from the provided location, which is the last element of the path.
Copy the file/directory in the old path to the new path.
Creates a file in the specified file path.
Creates a new directory with the specified name.
Creates a temporary file.
Creates a temporary directory.
Retrieves the absolute path from the provided location.
Returns the current working directory.
Returns the metadata information of the file specified in the file path.
Reports whether the path is absolute.
Joins any number of path elements into a single path.
Normalizes a path value.
Returns the enclosing parent directory.
Reads the directory and returns a list of metadata of files and directories inside the specified directory.
Returns a relative path, which is logically equivalent to the target path when joined to the base path with an intervening separator.
Removes the specified file or directory.
Renames(Moves) the old path with the new path.
Splits a list of paths joined by the OS-specific path separator.
Tests a file path against a test condition .
Represents an event which will trigger when there is a changes to listining direcotry.
Represents configurations that required for directory listener.
Metadata record contains metadata information of a file.
Represents options that can be used when copying files/directories
Represents options that can be used when creating or removing directories.
Represents the options that can be passed to normalizePath function.
Represents the options that can be passed to test function.
Represents file system related errors.