Package kotlin. io. path
Convenient extensions for working with file system using java.nio.file.Path.
Types
This annotation marks the extensions and top-level functions for working with java.nio.file.Path considered experimental.
Since Kotlin
Functions
Converts this possibly relative path to an absolute path and returns its string representation.
Since Kotlin
Appends an array of bytes to the content of this file.
Since Kotlin
Appends the specified collection of char sequences lines to a file terminating each one with the platform's line separator.
Since Kotlin
Appends the specified sequence of char sequences lines to a file terminating each one with the platform's line separator.
Since Kotlin
Since Kotlin
Returns a new BufferedReader for reading the content of this file.
Since Kotlin
Returns a new BufferedWriter for writing the content of this file.
Since Kotlin
Creates a directory ensuring that all nonexistent parent directories exist by creating them first.
Since Kotlin
Creates a new directory or throws an exception if there is already a file or directory located by this path.
Since Kotlin
Creates a new and empty file specified by this path, failing if the file already exists.
Since Kotlin
Creates a new link (directory entry) located by this path for the existing file target.
Since Kotlin
Creates a new symbolic link located by this path to the given target.
Since Kotlin
Creates a new directory in the default temp directory, using the given prefix to generate its name.
Since Kotlin
Since Kotlin
Creates an empty file in the default temp directory, using the given prefix and suffix to generate its name.
Since Kotlin
Creates an empty file in the specified directory, using the given prefix and suffix to generate its name.
Since Kotlin
Deletes the existing file or empty directory specified by this path.
Since Kotlin
Deletes the file or empty directory specified by this path if it exists.
Since Kotlin
Checks if the file located by this path exists.
Since Kotlin
Returns a file attributes view of a given type V or throws an UnsupportedOperationException if the requested attribute view type is not available..
Since Kotlin
Returns a file attributes view of a given type V or null
if the requested attribute view type is not available.
Since Kotlin
Performs the given action on each entry in this directory optionally filtered by matching against the specified glob pattern.
Since Kotlin
Reads this file line by line using the specified charset and calls action for each line. Default charset is UTF-8.
Since Kotlin
Reads the value of a file attribute.
Since Kotlin
Returns the last modified time of the file located by this path.
Since Kotlin
Returns the owner of a file.
Since Kotlin
Returns the POSIX file permissions of the file located by this path.
Since Kotlin
Constructs a new InputStream of this file and returns it as a result.
Since Kotlin
Checks if the file located by this path is a directory.
Since Kotlin
Checks if the file located by this path exists and is executable.
Since Kotlin
Checks if the file located by this path exists and is readable.
Since Kotlin
Checks if the file located by this path is a regular file.
Since Kotlin
Checks if the file located by this path points to the same file or directory as other.
Since Kotlin
Checks if the file located by this path exists and is a symbolic link.
Since Kotlin
Checks if the file located by this path exists and is writable.
Since Kotlin
Returns a list of the entries in this directory optionally filtered by matching against the specified glob pattern.
Since Kotlin
Checks if the file located by this path does not exist.
Since Kotlin
Constructs a new OutputStream of this file and returns it as a result.
Since Kotlin
Reads a file's attributes of the specified type A in bulk.
Since Kotlin
Reads the specified list of attributes of a file in bulk.
Since Kotlin
Returns a new InputStreamReader for reading the content of this file.
Since Kotlin
Reads the target of a symbolic link located by this path.
Since Kotlin
Calculates the relative path for this path from a base path.
Since Kotlin
Calculates the relative path for this path from a base path.
Since Kotlin
Calculates the relative path for this path from a base path.
Since Kotlin
Sets the value of a file attribute.
Since Kotlin
Sets the last modified time attribute for the file located by this path.
Since Kotlin
Sets the POSIX file permissions for the file located by this path.
Since Kotlin
Writes an array of bytes to this file.
Since Kotlin
Write the specified collection of char sequences lines to a file terminating each one with the platform's line separator.
Since Kotlin
Write the specified sequence of char sequences lines to a file terminating each one with the platform's line separator.
Since Kotlin
Returns a new OutputStreamWriter for writing the content of this file.
Since Kotlin
Properties
Returns the name of this file or directory without an extension, or an empty string if this path has zero path elements.