Package-level declarations
Convenient extensions for working with file system using java.nio.file.Path.
Types
Context for the copyAction
function passed to Path.copyToRecursively.
The result of the copyAction
function passed to Path.copyToRecursively that specifies further actions when copying an entry.
This annotation marks the extensions and top-level functions for working with java.nio.file.Path considered experimental.
The builder to provide implementation of the file visitor that fileVisitor builds.
The result of the onError
function passed to Path.copyToRecursively that specifies further actions when an exception occurs.
An enumeration to provide walk options for Path.walk function. The options can be combined to form the walk order and behavior needed.
Properties
Returns the string representation of this path using the invariant separator '/' to separate names in the path.
Returns the name of this file or directory without an extension, or an empty string if this path has zero path elements.
Functions
Converts this possibly relative path to an absolute path and returns its string representation.
Appends an array of bytes to the content of this file.
Returns a new BufferedReader for reading the content of this file.
Returns a new BufferedWriter for writing the content of this file.
Recursively copies this directory and its content to the specified destination target path. Note that if this function throws, partial copying may have taken place.
Creates a directory ensuring that all nonexistent parent directories exist by creating them first.
Creates a new directory or throws an exception if there is already a file or directory located by this path.
Creates a new and empty file specified by this path, failing if the file already exists.
Creates a new link (directory entry) located by this path for the existing file target.
Ensures that all parent directories of this path exist, creating them if required.
Creates a new symbolic link located by this path to the given target.
Creates a new directory in the default temp directory, using the given prefix to generate its name.
Creates an empty file in the default temp directory, using the given prefix and suffix to generate its name.
Creates an empty file in the specified directory, using the given prefix and suffix to generate its name.
Deletes the existing file or empty directory specified by this path.
Deletes the file or empty directory specified by this path if it exists.
Recursively deletes this directory and its content. Note that if this function throws, partial deletion may have taken place.
Checks if the file located by this path exists.
Returns a file attributes view of a given type V or throws an UnsupportedOperationException if the requested attribute view type is not available..
Returns a file attributes view of a given type V or null
if the requested attribute view type is not available.
Builds a FileVisitor whose implementation is defined in builderAction.
Reads the value of a file attribute.
Returns the last modified time of the file located by this path.
Returns the owner of a file.
Returns the POSIX file permissions of the file located by this path.
Constructs a new InputStream of this file and returns it as a result.
Checks if the file located by this path is a directory.
Checks if the file located by this path exists and is executable.
Checks if the file located by this path exists and is readable.
Checks if the file located by this path is a regular file.
Checks if the file located by this path points to the same file or directory as other.
Checks if the file located by this path exists and is a symbolic link.
Checks if the file located by this path exists and is writable.
Checks if the file located by this path does not exist.
Constructs a new OutputStream of this file and returns it as a result.
Reads a file's attributes of the specified type A in bulk.
Reads the specified list of attributes of a file in bulk.
Returns a new InputStreamReader for reading the content of this file.
Reads the target of a symbolic link located by this path.
Calculates the relative path for this path from a base path.
Calculates the relative path for this path from a base path.
Calculates the relative path for this path from a base path.
Sets the value of a file attribute.
Sets the last modified time attribute for the file located by this path.
Sets the POSIX file permissions for the file located by this path.
Visits this directory and all its content with the specified visitor.
Visits this directory and all its content with the FileVisitor defined in builderAction.
Returns a sequence of paths for visiting this directory and all its content.
Writes an array of bytes to this file.
Write the specified collection of char sequences lines to a file terminating each one with the platform's line separator.
Write the specified sequence of char sequences lines to a file terminating each one with the platform's line separator.
Returns a new OutputStreamWriter for writing the content of this file.