Class DirectoryDescentUtils

java.lang.Object
com.mchange.v2.io.DirectoryDescentUtils

public final class DirectoryDescentUtils extends Object
  • Method Details

    • depthFirstEagerDescent

      public static FileIterator depthFirstEagerDescent(File root) throws IOException
      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

      public static void main(String[] argv)