driver.py 文件源码

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

项目:python-tldp 作者: tLDP 项目源码 文件源码
def post_publish_cleanup(workingdirs):
    '''clean up empty directories left under --builddir'''
    for d in workingdirs:
        if os.path.isdir(d):
            try:
                logger.debug("removing build dir %s", d)
                os.rmdir(d)
            except OSError as e:
                if e.errno != errno.ENOTEMPTY:
                    raise
                logger.debug("Could not remove %s; files still present", d)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号