public static void copyDirectoryRecursive(Path from,Path to) throws IOException {
  LOGGER.info("Copyin complete directory from " + from + " to "+ to);
  Files.walkFileTree(from,new CopyFileVisitor(to));
}

public static void copyDirectoryRecursive ( Path from , Path to ) throws IOException { LOGGER . info ( "Copyin complete directory from " + from + " to " + to ) ; Files . walkFileTree ( from , new CopyFileVisitor ( to ) ) ; }
copies a complete directory recursively , using java nio
