public static Promise < Void > move ( Executor executor , Path source , Path target , CopyOption ... options ) { return ofBlockingRunnable ( executor , ( ) -> { try { Files . move ( source , target , options ) ; } catch ( IOException e ) { throw new UncheckedException ( e ) ; } } ) ; }
Moves or renames a file to a target file .