Android Utililty Methods Folder File List

List of utility methods to do Folder File List

Description

The list of methods to do Folder File List are organized into topic(s).

Method

ListgetAllFiles(File root)
Gets all files under the specified fold.
return getAllFiles(root, null);
ListgetAllFiles(File root, FileFilter filter)
Gets all files under the specified fold.
Assert.assertFileExist(root);
List<File> files = new ArrayList<File>();
if (root.isFile()) {
    if (filter == null || filter.accept(root)) {
        files.add(root);
} else {
    File[] fs = root.listFiles();
...