public static boolean renameTo ( final Path self , URI newPathName ) { try { Files . move ( self , Paths . get ( newPathName ) ) ; return true ; } catch ( IOException e ) { return false ; } }
Renames a file .