AnalyzeControl.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:HaboMalHunter 作者: Tencent 项目源码 文件源码
def compress_log(cfg):
    tmp_compressed_path = "/tmp/output.zip"
    if os.path.exists(tmp_compressed_path):
        os.remove(tmp_compressed_path)
    dest = os.path.join(cfg.file_log_dir,"output.zip")
    if os.path.exists(dest):
        os.remove(dest)
    f_name = shutil.make_archive("/tmp/output","zip",cfg.file_log_dir)
    shutil.move(f_name,dest)
    log.info("log files were packed into %s",cfg.file_log_dir)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号