Creates a new Path with the specified path appended.
Creates a new Path with the specified path appended. Assumes the type of the new component implies the type of the result.
Deletes the path recursively.
Deletes the path recursively. Returns false on failure. Use with caution!
The path of the parent directory, or root if path is already root
If this path is absolute, returns it: otherwise, returns an absolute path made up of root / this.
Equivalent to walkFilter(_ => false).
If this path is a container, recursively iterate over its contents.
If this path is a container, recursively iterate over its contents. The supplied condition is a filter which is applied to each element, with that branch of the tree being closed off if it is true. So for example if the condition is true for some subdirectory, nothing under that directory will be in the Iterator; but otherwise each file and subdirectory underneath it will appear.
The Path constructor is private so we can enforce some semantics regarding how a Path might relate to the world.
Note: This library is considered experimental and should not be used unless you know what you are doing.