public static boolean execute ( final File source , final File destination , boolean renameEmptyFiles ) { if ( renameEmptyFiles || ( source . length ( ) > 0 ) ) { return source . renameTo ( destination ) ; } return source . delete ( ) ; }
Rename file .