Package com.mchange.v2.io
Class DirectoryDescentUtils
java.lang.Object
com.mchange.v2.io.DirectoryDescentUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSubtree(File root, FileFilter filter, boolean canonical, Collection addToMe) static FileIteratordepthFirstEagerDescent(File root) static FileIteratordepthFirstEagerDescent(File root, FileFilter filter, boolean canonical) static void
-
Method Details
-
depthFirstEagerDescent
- Returns:
- FileIterator over all files and dierctories beneath root
- Throws:
IOException
-
depthFirstEagerDescent
public static FileIterator depthFirstEagerDescent(File root, FileFilter filter, boolean canonical) throws IOException - Parameters:
canonical- file paths will be canonicalized if true- Returns:
- FileIterator over all files and directories beneath root that match filter.
- Throws:
IOException
-
addSubtree
public static void addSubtree(File root, FileFilter filter, boolean canonical, Collection addToMe) throws IOException - Throws:
IOException
-
main
-