A wrapper around a string representing a file path allowing to read from and write to a corresponding file using Sink and Source.
This API is unstable and subject to change.
Returns true if this path is absolute, false otherwise.
true
false
Returns the name of the file or directory represented by this path.
Returns a path representing a parent directory for this path, or null if there is no parent directory for this path.
null
Compares two paths for equality using its string representation (toString).
Returns hash code of this Path. The hash code is calculated for the path's string representations (toString).
Returns RawSink for the given path, creates file if it doesn't exist, throws if it's a directory, overwrites contents.
Returns RawSource for the given file or throws if path is not a file or does not exist
Returns a string representation of this path.