Class FileUtil

    • Constructor Detail

      • FileUtil

        public FileUtil​(Context context)
    • Method Detail

      • fileToURL

        public static URL fileToURL​(File file)
      • createMissingParentDirectories

        public static boolean createMissingParentDirectories​(File file)
        Creates the parent directories of a file. If parent directories not specified in file's path, then nothing is done and this returns gracefully.
        file - file whose parent directories (if any) should be created
        true if either no parents were specified, or if all parent directories were created successfully; false otherwise