public static boolean cutFile(File originFile, File targetFile) {
        Assert.notNull(originFile);
        Assert.notNull(targetFile);
        copyFile(originFile, targetFile);
        if (originFile.length() == targetFile.length()) {
            return originFile.delete();
        }
        return false;
    }
public static boolean cutFile ( File originFile , File targetFile ) { Assert . notNull ( originFile ) ; Assert . notNull ( targetFile ) ; copyFile ( originFile , targetFile ) ; if ( originFile . length ( ) == targetFile . length ( ) ) { return originFile . delete ( ) ; } return false ; }
将源文件剪切到目标文件

@param originFile 源文件
@param targetFile 目标文件
@return