question: public static void moveFile ( File origPath , File destPath ) throws IOException { copyFile ( origPath , destPath ) ; if ( ! origPath . delete ( ) ) throw new IOException ( "Cannot delete file: " + origPath . getName ( ) ) ; }
target:  Convenience function to move a file.