@@ -0,0 +1,1602 @@
+package net.the4thdimension.android;%0A%0Aimport android.os.Environment;%0Aimport android.support.test.runner.AndroidJUnit4;%0Aimport android.test.AndroidTestCase;%0Aimport android.test.suitebuilder.annotation.SmallTest;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport java.io.File;%0Aimport java.util.ArrayList;%0A%0A/**%0A * Created by jaydeepw on 1/2/17.%0A */%0A@RunWith(AndroidJUnit4.class)%0A@SmallTest%0Apublic class FileUtilsInstrumentationTest extends AndroidTestCase %7B%0A%0A    @Test%0A    public void listFilesMultiple() throws Exception %7B%0A%0A        File tempFile = new File(Environment.getExternalStorageDirectory().getPath());%0A        File directory = new File(tempFile, %22rajababu%22);%0A        boolean isDirCreated = directory.mkdir();%0A        assertEquals(%22Directory created%22, true, isDirCreated);%0A%0A        File file1 = new File(directory, %22f1.txt%22);%0A        File file2 = new File(directory, %22f2.txt%22);%0A        file1.createNewFile();%0A        file2.createNewFile();%0A%0A        ArrayList files = new ArrayList();%0A        FileUtils.listFiles(directory, files);%0A%0A        assertEquals(2, files.size());%0A%0A        // clean up%0A        file1.delete();%0A        file2.delete();%0A        directory.delete();%0A    %7D%0A%0A    @Test%0A    public void listFilesZeroFiles() throws Exception %7B%0A%0A        File tempFile = new File(Environment.DIRECTORY_DOWNLOADS);%0A        File directory = new File(tempFile, %22rajababu%22);%0A        directory.mkdir();%0A%0A        ArrayList files = new ArrayList();%0A        FileUtils.listFiles(directory, files);%0A%0A        assertEquals(0, files.size());%0A%0A        // clean up%0A        directory.delete();%0A    %7D%0A%0A%7D

Disable allows backup. Creates problem with using this library with other apps.