code: public static Action moveAndReplaceFile(String srcPath, String destPath, String tempDir) {
          Action seq = new Action();
          seq.add(deleteFile(destPath, tempDir));
          seq.add(moveFileToEmptyPath(srcPath, destPath));
          return seq;
      }
docs: Moves the file/directory to a new location, replacing anything that already exists there.
  @param srcPath Source path
  @param destPath Destination path to be replaced
  @param tempDir Path to a temp directory used for backing out file deletion
  @return A moveAndReplaceFile action