Class RemotePath
java.lang.Object
io.gem.agent.RemotePath
POSIX path operations for supported Linux and macOS remote nodes.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAbsolute(String path) Test whether a remote path is absolute according to the POSIX remote-node contract.static StringJoin a remote parent and one or more relative path segments.static StringRemove trailing separators from a remote path while preserving the POSIX root.static StringReturn the parent of a normalized POSIX remote path.
-
Field Details
-
ROOT
-
-
Method Details
-
join
Join a remote parent and one or more relative path segments.- Parameters:
parent- absolute or relative remote parentchildren- relative child segments- Returns:
- joined POSIX remote path
- Throws:
IllegalArgumentException- when no child is supplied or a child is absolute
-
parent
-
normalize
-
isAbsolute
Test whether a remote path is absolute according to the POSIX remote-node contract.- Parameters:
path- remote path- Returns:
- true when the path begins at the POSIX root
-