public class TreeCopier extends Object implements FileVisitor<Path>
Constructor and Description |
---|
TreeCopier(Path source,
Path target) |
Modifier and Type | Method and Description |
---|---|
FileVisitResult |
postVisitDirectory(Path dir,
IOException exc) |
FileVisitResult |
preVisitDirectory(Path dir,
BasicFileAttributes attrs) |
FileVisitResult |
visitFile(Path file,
BasicFileAttributes attrs) |
FileVisitResult |
visitFileFailed(Path file,
IOException exc) |
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
preVisitDirectory
in interface FileVisitor<Path>
IOException
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
visitFile
in interface FileVisitor<Path>
IOException
public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException
visitFileFailed
in interface FileVisitor<Path>
IOException
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException
postVisitDirectory
in interface FileVisitor<Path>
IOException
Copyright © 2020 CrafterCMS. All rights reserved.