Performance measurement showed that I spend a lot of time finding subdirectories. I use
File[] subDirArray = file.listFiles(new FileFilter()
{
@Override
public boolean accept(File pathname)
{
return pathname.isDirectory();
}
});
to find all direct subdirectories of a given directory. Is there a way to do this faster (in Java 7)?