Package org.apache.sshd.common.file.root
Class RootedFileSystemUtils
java.lang.Object
org.apache.sshd.common.file.root.RootedFileSystemUtils
Utility functions for rooted file utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
validateSafeRelativeSymlink
(Path target) Validate that the relative path target is safe.
-
Constructor Details
-
RootedFileSystemUtils
private RootedFileSystemUtils()
-
-
Method Details
-
validateSafeRelativeSymlink
Validate that the relative path target is safe. This means that at no point in the path can there be more ".." than path parts.- Parameters:
target
- the target directory to validate is safe.
-