0

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)?

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142

0 Answers0