Package com.plotsquared.core.util
Class RecursiveDirectoryRemovalWalker
- All Implemented Interfaces:
FileVisitor<Path>
A
SimpleFileVisitor that recursively deletes a directory tree.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull FileVisitResultpostVisitDirectory(@NotNull Path dir, @Nullable IOException exc) @NotNull FileVisitResultvisitFile(@NotNull Path file, @NotNull BasicFileAttributes attrs) Methods inherited from class java.nio.file.SimpleFileVisitor
preVisitDirectory, visitFileFailed
-
Field Details
-
INSTANCE
-
-
Method Details
-
postVisitDirectory
@NotNull public @NotNull FileVisitResult postVisitDirectory(@NotNull @NotNull Path dir, @Nullable @Nullable IOException exc) throws IOException - Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Overrides:
postVisitDirectoryin classSimpleFileVisitor<Path>- Throws:
IOException
-
visitFile
@NotNull public @NotNull FileVisitResult visitFile(@NotNull @NotNull Path file, @NotNull @NotNull BasicFileAttributes attrs) throws IOException - Specified by:
visitFilein interfaceFileVisitor<Path>- Overrides:
visitFilein classSimpleFileVisitor<Path>- Throws:
IOException
-