public interface

FileTreeVisitor

com.facebook.common.file.FileTreeVisitor

Class Overview

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).

Summary

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)

Public Methods

public abstract void postVisitDirectory (File directory)

Called after iterating over a directory (including the root directory of the iteration)

public abstract void preVisitDirectory (File directory)

Called before iterating over a directory (including the root directory of the iteration)

public abstract void visitFile (File file)

Called for each file contained in a directory (after preVisitDirectory)