Combines this path with the given relative path, returning a path of the same type as this one (e.g.
Combines this path with the given relative path, returning
a path of the same type as this one (e.g. Path
returns Path
,
RelPath
returns RelPath
Gives you the file extension of this path, or the empty string if there is no extension
Gives you the file extension of this path, or the empty string if there is no extension
The last segment in this path.
The last segment in this path. Very commonly used, e.g. it represents the name of the file/folder in filesystem paths
Relativizes this path with the given base
path, finding a
relative path p
such that base/p == this.
Relativizes this path with the given base
path, finding a
relative path p
such that base/p == this.
Note that you can only relativize paths of the same type, e.g.
Path
& Path
or RelPath
& RelPath
. In the case of RelPath
,
this can throw a PathError.NoRelativePath if there is no
relative path that satisfies the above requirement in the general
case.
The individual path segments of this path.
The individual path segments of this path.
This path starts with the target path, including if it's identical
Obtain the final path to a file by resolving symlinks if any.
Obtain the final path to a file by resolving symlinks if any.
Some(path) or else None if the symlink is invalid or other error.
An absolute path on the filesystem. Note that the path is normalized and cannot contain any empty
""
,"."
or".."
segments