Class RootedFileSystemUtils


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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RootedFileSystemUtils

        private RootedFileSystemUtils()
    • 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.