Package org.esa.snap.core.util.io
Class TreeDeleter
java.lang.Object
org.esa.snap.core.util.io.TreeDeleter
- All Implemented Interfaces:
FileVisitor<Path>
A
FileVisitor that deletes a file tree.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeeply deletes the directory given bysource.postVisitDirectory(Path dir, IOException exception) preVisitDirectory(Path dir, BasicFileAttributes attributes) visitFile(Path file, BasicFileAttributes attributes) visitFileFailed(Path file, IOException exception)
-
Constructor Details
-
TreeDeleter
public TreeDeleter()
-
-
Method Details
-
deleteDir
Deeply deletes the directory given bysource.- Parameters:
source- The source directory.- Throws:
IOException
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>- Throws:
IOException
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attributes) throws IOException - Specified by:
preVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>
-