Package org.spongepowered.api.util.file
Class DeleteFileVisitor
- All Implemented Interfaces:
FileVisitor<Path>
Represents a
FileVisitor which will recursively delete a directory
with all its contents.
Example usage:
Files.walkFileTree(dir, DeleteFileVisitor.INSTANCE);
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostVisitDirectory(Path dir, IOException exc) visitFile(Path file, BasicFileAttributes attrs) Methods inherited from class java.nio.file.SimpleFileVisitor
preVisitDirectory, visitFileFailed
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DeleteFileVisitor
protected DeleteFileVisitor()
-
-
Method Details
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>- Overrides:
visitFilein classSimpleFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Overrides:
postVisitDirectoryin classSimpleFileVisitor<Path>- Throws:
IOException
-