Class FilePath


  • public class FilePath
    extends Object
    FilePath provides general file path manipulation utilities.
    • Constructor Detail

      • FilePath

        public FilePath()
    • Method Detail

      • getAbsolutePath

        public static String getAbsolutePath​(File file)
        Return the absolute path for a file. All directory separators are converted to be File.separatorChar
      • canonicalize

        public static String canonicalize​(File file)
        Attempt to produce a canonical path name for the specified file
      • canonicalNamesEqual

        public static boolean canonicalNamesEqual​(String f1,
                                                  String f2)
        Compare two "canonical" file names for equivalence