Package org.apache.sshd.common.file.root
Class RootedFileSystemUtils
- java.lang.Object
-
- org.apache.sshd.common.file.root.RootedFileSystemUtils
-
public final class RootedFileSystemUtils extends java.lang.Object
Utility functions for rooted file utils
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RootedFileSystemUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
validateSafeRelativeSymlink(java.nio.file.Path target)
Validate that the relative path target is safe.
-
-
-
Method Detail
-
validateSafeRelativeSymlink
public static void validateSafeRelativeSymlink(java.nio.file.Path target)
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.
-
-