code: public static String movePath( final String file,
                                     final String target ) {
          final String name = new File(file).getName();
          return target.endsWith("/") ? target + name : target + '/' + name;
      }
docs: Construct new path by replacing file directory part. No
  files are actually modified.
  @param file path to move
  @param target new path directory