public static boolean mkdirs(final File file) {
        final boolean success = file.mkdirs() || file.isDirectory(); // mkdirs returns false on existing directories
        if (!success) {
            Log.w("Could not make directories " + file.getAbsolutePath());
        }
        return success;
    }
Creates the directory named by the given file, creating any missing parent directories in the process.

@return {@code true} if the directory was created, {@code false} on failure or if the directory already
existed.
main/src/main/java/cgeo/geocaching/utils/FileUtils.java