I have a folder with a lot of txt, images etc. How can I sort it by size and by files type?
File dirlist = new File(suuid);
String[] extensions = new String[] { "txt" };
List<File> files = (List<File>) FileUtils.listFiles(dirlist, extensions, true);
for (File file : files) {
// how can I do ?
}
Thanks !