Package org.opencastproject.cleanup
Class RecursiveDirectoryCleaner
java.lang.Object
org.opencastproject.cleanup.RecursiveDirectoryCleaner
- All Implemented Interfaces:
FileVisitor<Path>
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancleanDirectory(Path startingDir, Duration duration) postVisitDirectory(Path dir, IOException exc) preVisitDirectory(Path path, BasicFileAttributes basicFileAttributes) visitFile(Path path, BasicFileAttributes attrs) visitFileFailed(Path path, IOException e)
-
Method Details
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path path, BasicFileAttributes basicFileAttributes) throws IOException - Specified by:
preVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
cleanDirectory
-