jodd-core/src/main/java/jodd/io/FileUtil.java
private static void _moveFile(final File srcFile, final File destFile) throws IOException {
		if (destFile.exists()) {
			checkIsFile(destFile);
			destFile.delete();
		}

		final boolean rename = srcFile.renameTo(destFile);
		if (!rename) {
			_copyFile(srcFile, destFile);
			srcFile.delete();
		}
	}
private static void _moveFile(final File srcFile, final File destFile) throws IOException {
		if (destFile.exists()) {
			checkIsFile(destFile);
			destFile.delete();
		}

		final boolean rename = srcFile.renameTo(destFile);
		if (!rename) {
			_copyFile(srcFile, destFile);
			srcFile.delete();
		}
	}
private static void _moveFile ( final File srcFile , final File destFile ) throws IOException { if ( destFile . exists ( ) ) { checkIsFile ( destFile ) ; destFile . delete ( ) ; } final boolean rename = srcFile . renameTo ( destFile ) ; if ( ! rename ) { _copyFile ( srcFile , destFile ) ; srcFile . delete ( ) ; } }
Moves a {@link File}.

@param srcFile  Source {@link File}.
@param destFile Destination directory.
@throws IOException
Moves a { @link File } .