Class PathUtil


  • public class PathUtil
    extends Object
    PathUtil...
    • Constructor Detail

      • PathUtil

        public PathUtil()
    • Method Detail

      • makePath

        public static String[] makePath​(String[] parent,
                                        String path)
        make a canonical path. removes all /./ and /../ and multiple slashes.
        Parameters:
        parent - the parent path (can be null)
        path - the path to resolve
        Returns:
        the canonicalized path
      • getRelativeFile

        public static File getRelativeFile​(File parent,
                                           File file)
      • getRelativeFilePath

        public static String getRelativeFilePath​(String cwd,
                                                 String path)
      • getDepth

        public static int getDepth​(String path)