Class DeleteFileVisitor

java.lang.Object
java.nio.file.SimpleFileVisitor<Path>
org.spongepowered.api.util.file.DeleteFileVisitor
All Implemented Interfaces:
FileVisitor<Path>

public class DeleteFileVisitor extends SimpleFileVisitor<Path>
Represents a FileVisitor which will recursively delete a directory with all its contents.

Example usage: Files.walkFileTree(dir, DeleteFileVisitor.INSTANCE);