Recursively search for a directory in Java

directory, find, java, search

Solution

Your solution will include the use of `File.listFiles(String)`

`java.io.File` API reference

Problem

What is the best way to find a directory with a specific name in Java? The directory that I am looking for can be located either in the current directory or one of its subdirectories.

Original source