5 Replies Latest reply on May 16, 2009 8:57 AM by 807588

    Overwriting existing files?

    807588
      I move files to another location in a java application on vista/xp:
      ...
            for (File srcFile : fileList) {
              File dest = new File(destination);
              srcFile.renameTo(new File(dest, srcFile.getName()));
      ...
      But if the file already exists in the destination the srcFile is not moved. How do I "force" a move?