public class DirectoryFinder extends Object
| Constructor and Description |
|---|
DirectoryFinder() |
public static File find(File startDir, String match, int maxDepth)
For example, used to find the WEB-INF directory starting from the current working directory.
// search to a depth of 3 from the current working directory
// looking for a directory WEB-INF that contains the subdirectory
// data
File dir = DirectoryFinder.find(null, "WEB-INF/data", 3);
if (dir != null) {
//found the directory
}
Copyright © 2014. All Rights Reserved.