Returns true
if the path is absolute.
Returns the name of the last part of the path.
Returns the normalized form of this path.
Returns the normalized form of this path.
The normalization process entails the removal of .
and ..
parts where possible.
Examples:
"/.." normalizes to "/" "/foo/.." normalizes to "/" "/foo/../bar" normalizes to "/bar" "./foo" normalizes to "foo" "foo/." normalizes to "foo" "foo/.." normalizes to "" "foo/./bar" normalizes to "foo/bar" "foo/../bar" normalizes to "bar"
the normalized form of this path
Returns the parent path.
Returns the parent path wrapped in an Option
.
Returns a sequence containing the parts of the path.
Returns a sequence containing the parts of the path.
Parts represent the node names sandwiched between /
characters. An absolute path, which is prefixed with /
, always
yields a sequence containing an empty string as the first element. The path ""
contains no parts, hence an empty
sequence is returned. In all other cases, parts are non-empty strings.
Examples:
"" parts () "/" parts ("/") "/foo/bar" parts ("", "foo", "bar") "foo/bar" parts ("foo", "bar")
a sequence containing the parts of path
Returns the path.
Returns the path.
the path
Resolves the given path
relative to this path.
Resolves the given path
relative to this path.
Resolves the given path
relative to this path.
Path resolution works as follows:
Represents an absolute or relative path to a node in ZooKeeper.
An absolute path starts with the
/
character. All other forms are considered relative. Paths are virtually identical to those on Unix file systems and may include both.
and..
parts, indicating the current and parent node, respectively.Examples: