public class DeltreeFileVisitor extends SimpleFileVisitor<Path>
Files.walkFileTree( dir.toPath(), new DeltreeFileVisitor() );
Constructor and Description |
---|
DeltreeFileVisitor() |
Modifier and Type | Method and Description |
---|---|
FileVisitResult |
postVisitDirectory(Path dir, IOException exc) |
FileVisitResult |
visitFile(Path file, BasicFileAttributes attrs) |
preVisitDirectory, visitFileFailed
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
visitFile
in interface
FileVisitor<Path>
visitFile
in class
SimpleFileVisitor<Path>
IOException
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException
postVisitDirectory
in interface
FileVisitor<Path>
postVisitDirectory
in class
SimpleFileVisitor<Path>
IOException