I need to find files in directories and subdirectories by type of extension and ignorecase mode, this is my code:
String[] patron = {"doc", "xls", "ppt"};
Iterator iter = FileUtils.iterateFiles(new File(directories), patron, true);
I also need to return the files with extension like Doc, Doc, ... ignorecase
Use the other version of the method and pass your own filter:
Notice the use of
IOCase.INSENSITIVE
.