I have a folder with this structure
mainFolder
--Sub1
--File .scl
--File .awl
--Other files
--Sub2
--Fi
Is the case of those string fixed in stone? Maybe something like
new FileFilter() {
public boolean accept(File pathname) {
String path = pathname.getAbsolutePath().toLowerCase();
return (!pathname.isDirectory() || path.endsWith("sub3")) &&
(!Settings.getSiemensOptionAWL() && path.endsWith(".awl")) &&
(!Settings.getSiemensOptionSCL() && path.endsWith(".scl"));
}
}