Class DirWalker

java.lang.Object
org.apache.commons.io.DirectoryWalker
org.duracloud.sync.walker.DirWalker
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
RestartDirWalker

public class DirWalker extends org.apache.commons.io.DirectoryWalker implements Runnable
Handles the walking of a set of directory trees. Each file found in the tree is added to the changed file list. Any files found among the listed directories will also be added to the changed file list. This is the starting point for synchronization.
  • Field Details

  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • stopWalk

      public void stopWalk()
    • walkDirs

      protected void walkDirs()
    • handleDirectory

      protected boolean handleDirectory(File directory, int depth, Collection results) throws IOException
      Overrides:
      handleDirectory in class org.apache.commons.io.DirectoryWalker
      Throws:
      IOException
    • handleFile

      protected void handleFile(File file, int depth, Collection results)
      Overrides:
      handleFile in class org.apache.commons.io.DirectoryWalker
    • handleIsCancelled

      protected boolean handleIsCancelled(File file, int depth, Collection results) throws IOException
      Overrides:
      handleIsCancelled in class org.apache.commons.io.DirectoryWalker
      Throws:
      IOException
    • start

      public static DirWalker start(List<File> topDirs, FileExclusionManager fileExclusionManager)
    • walkComplete

      public boolean walkComplete()
    • getFilesCount

      public int getFilesCount()