projects/moments/app/src/main/java/io/v/moments/lib/FileUtil.java
/**
     * Make sure argument directory exists and delete anything it contains.
     */
Make sure argument directory exists and delete anything it contains.
Make sure argument directory exists and delete anything it contains .
public static void initializeDirectory(File dir) {
        if (dir.exists()) {
            FileUtil.rmMinusF(dir);
        }
        if (!dir.mkdirs()) {
            throw new IllegalStateException(
                    "Failed to create directory " + dir);
        }
    }
public static void initializeDirectory ( File dir ) { if ( dir . exists ( ) ) { FileUtil . rmMinusF ( dir ) ; } if ( ! dir . mkdirs ( ) ) { throw new IllegalStateException ( "Failed to create directory " + dir ) ; } }
Make sure argument directory exists and delete anything it contains.
Make sure argument directory exists and delete anything it contains .