@@ -0,0 +1,1605 @@
+package com.antew.redditinpictures.library.utils;%0A%0Aimport java.io.File;%0Aimport java.lang.reflect.InvocationTargetException;%0Aimport java.lang.reflect.Method;%0A%0Aimport android.annotation.SuppressLint;%0Aimport android.os.Environment;%0A%0Aimport com.antew.redditinpictures.library.logging.Log;%0A%0Apublic class DiskUtil %7B%0A%0A    public static final String TAG = DiskUtil.class.getSimpleName();%0A%0A    /*%0A     * Suppressing lint for this function since it uses reflection to find out if the method exists%0A     */%0A    @SuppressLint(%22NewApi%22)%0A    public static File getPicturesDirectory() %7B%0A        File picturesDirectory = null;%0A        try %7B%0A            Method getPublicDir = Environment.class.getMethod(%22getExternalStoragePublicDirectory%22, new Class%5B%5D %7B String.class %7D);%0A            getPublicDir.invoke(null, Environment.DIRECTORY_PICTURES);%0A            picturesDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);%0A%0A        %7D catch (NoSuchMethodException e) %7B%0A            picturesDirectory = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + %22redditinpictures%22 + File.separator);%0A        %7D catch (IllegalArgumentException e) %7B%0A            Log.e(TAG, %22getExternalStoragePublicDirectory%22, e);%0A        %7D catch (IllegalAccessException e) %7B%0A            Log.e(TAG, %22getExternalStoragePublicDirectory%22, e);%0A        %7D catch (InvocationTargetException e) %7B%0A            Log.e(TAG, %22getExternalStoragePublicDirectory%22, e);%0A        %7D%0A%0A        if (picturesDirectory != null)%0A            picturesDirectory.mkdirs();%0A%0A        return picturesDirectory;%0A    %7D%0A%7D%0A

Add DiskUtil for disk related functions.