docs/javadoc/reference/com/facebook/common/file/FileTree.html
|
|
Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class
extends Object
| java.lang.Object | | ↳ | com.facebook.common.file.FileTree |
Utility class to visit a file tree. There's similar functionality in Java 7's Files.walkFileTree method. Its methods could be merge into FileUtil (although it seems to have a lot of crazy redundant methods, maybe for testing, but crazy anyway).
| Public Constructors |
|---|
| Public Methods |
|---|
| static boolean |
| Deletes all files and subdirectories in directory (doesn't delete the directory passed as parameter). |
| static boolean |
| Deletes the file and if it's a directory deletes also any content in it |
| static void |
| Iterates over the file tree of a directory. |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
|
Deletes all files and subdirectories in directory (doesn't delete the directory passed as parameter).
Deletes the file and if it's a directory deletes also any content in it
| file | a file or directory |
Iterates over the file tree of a directory. It receives a visitor and will call its methods for each file in the directory. preVisitDirectory (directory) visitFile (file) - recursively the same for every subdirectory postVisitDirectory (directory)
| directory | the directory to iterate | | visitor | the visitor that will be invoked for each directory/file in the tree |
+Generated by Doclava. +