code: public static void copy(File from, File to) throws IOException {
          if (from.isDirectory())
              copyDir(from, to);
          else
              copyFile(from, to);
      }
docs: Copy files or directories
  
  @param from the file to copy
  @param to   the destination to copy to
  @throws IOException if unable to copy