Class CopyFileVisitor

  • All Implemented Interfaces:
    FileVisitor<Path>

    public final class CopyFileVisitor
    extends SimpleFileVisitor<Path>
    Represents a FileVisitor which will create a copy of a directory and its contents.

    Example usage:
    Files.walkFileTree(dir, new CopyFileVisitor(target);