public static void transferFile(File src, File dest) throws Exception {

        // 删除文件
        // LOGGER.info("start to remove download file: " + ""
        // + dest.getAbsolutePath());
        if (dest.exists()) {
            dest.delete();
        }

        // 转移临时下载文件至下载文件夹
        FileUtils.copyFile(src, dest);
    }
public static void transferFile ( File src , File dest ) throws Exception { if ( dest . exists ( ) ) { dest . delete ( ) ; } FileUtils . copyFile ( src , dest ) ; }
@param src
@param dest

@return void

@Description: 转移文件
@author liaoqiqi
@date 2013-6-20