Class RootedFileSystemUtils

java.lang.Object
org.apache.sshd.common.file.root.RootedFileSystemUtils

public final class RootedFileSystemUtils extends Object
Utility functions for rooted file utils
  • Constructor Details

    • RootedFileSystemUtils

      private RootedFileSystemUtils()
  • Method Details

    • 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.