Package jflex.io

Class FileUtils


  • public class FileUtils
    extends Object
    • Method Detail

      • getRelativePath

        public static String getRelativePath​(File rootDirectory,
                                             File file)
        Returns the path of file relative to rootDirectory.
      • slashify

        public static String slashify​(String path)
        Replaces the \ by a / in the path, because backslash is used as an escape sequence in Java (e.g. is a unicode character.