Class RootedFileSystemUtils


  • public final class RootedFileSystemUtils
    extends Object
    Utility functions for rooted file utils
    • 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.