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