public static void move(String srcPath, String dstPath) throws IOException {
    Files.move(Paths.get(srcPath), Paths.get(dstPath), StandardCopyOption.REPLACE_EXISTING);
  }
public static void move ( String srcPath , String dstPath ) throws IOException { Files . move ( Paths . get ( srcPath ) , Paths . get ( dstPath ) , StandardCopyOption . REPLACE_EXISTING ) ; }
Moves file from one place to another, can across storage devices (e.g., from memory to SSD)
when {@link File#renameTo} may not work.

@param srcPath pathname string of source file
@param dstPath pathname string of destination file