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.''
- Companion
- object
Value members
Concrete methods
Creates a new Path with the specified path appended. Assumes the type of the new component implies the type of the result.
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. Returns false on failure. Use with caution!
Deletes the path recursively. Returns false on failure. Use with caution!
If this path is absolute, returns it: otherwise, returns an absolute path made up of root / this.
If this path is absolute, returns it: otherwise, returns an absolute path made up of root / this.
If this path is a directory, 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 false. So for example if the condition is false for some subdirectory, nothing under that directory will be in the Iterator. If it's true, all files for which the condition holds and are directly in that subdirectory are in the Iterator, and all sub-subdirectories are recursively evaluated
If this path is a directory, 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 false. So for example if the condition is false for some subdirectory, nothing under that directory will be in the Iterator. If it's true, all files for which the condition holds and are directly in that subdirectory are in the Iterator, and all sub-subdirectories are recursively evaluated