public static void copyDirectory(Path source, Path target) {
if (!Files.exists(source) || !Files.isDirectory(source))
throw new IllegalArgumentException(source + " is not a directory");
public static void copyDirectory(Path source, Path target) {
if (!Files.exists(source) || !Files.isDirectory(source))
throw new IllegalArgumentException(source + " is not a directory");