List of utility methods to do File List Load
List | getFilesFromDirectory(final File folder) get Files From Directory List<File> fileList = new ArrayList<>(); File[] list = folder.listFiles(); if (list == null) { return fileList; for (final File fileEntry : list) { if (!fileEntry.isDirectory()) { fileList.add(fileEntry); ... |
File[] | getFilesFromDirectory(final String directory) Get all files in the directory. File dir = new File(directory); return dir.listFiles(); |
List | getFilesFromDirectoryByExtension(File directory, String extension) get Files From Directory By Extension String[] extensions = { extension };
return getFilesFromDirectoryByExtension(directory, extensions);
|