public static void copy(Path from, Path to) throws IOException {
Files.walkFileTree(from, new CopyDirectoriesVisitor(from, to));
}
public static class DeleteDirectoriesVisitor extends SimpleFileVisitor<Path> {
public static void copy(Path from, Path to) throws IOException {
Files.walkFileTree(from, new CopyDirectoriesVisitor(from, to));
}
public static class DeleteDirectoriesVisitor extends SimpleFileVisitor<Path> {