com.facebook.common.file.FileTreeVisitor |
An instance of this interface must be passed to FileTree.walkFileTree method in order to execute some logic while iterating over the directory descendants. Java 7 provides a FileVisitor interface and a Files.walkFileTree method that does this same thing (with more options).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
postVisitDirectory(File directory)
Called after iterating over a directory (including the root directory of the iteration)
| ||||||||||
abstract void |
preVisitDirectory(File directory)
Called before iterating over a directory (including the root directory of the iteration)
| ||||||||||
abstract void |
visitFile(File file)
Called for each file contained in a directory (after preVisitDirectory)
|
Called after iterating over a directory (including the root directory of the iteration)
Called before iterating over a directory (including the root directory of the iteration)
Called for each file contained in a directory (after preVisitDirectory)