I need to expand the wildcards in the file path to get a list of files matching the file path.
I used commons-io from apache:
protected File[] wildcardResolution(File f) { File dir = f.getParentFile(); FileFilter fileFilter = new WildcardFileFilter(f.getName()); return dir.listFiles(fileFilter); }
The problem is that it extends only * or ? wildcards, but not ** wildcards, therefore: / usr / ** / *. xml does not match all files with extension .xml, in any subfolder of /usr .
How can I get a wildcard extension ** to work correctly?
thanks
source share