common.py 文件源码

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

项目:ipbb 作者: ipbus 项目源码 文件源码
def cleanup(env):

    _, lSubdirs, lFiles =  next(os.walk(env.projectPath))
    lFiles.remove( kProjAreaCfgFile )


    if not click.confirm("All files in {} will be deleted. Do you want to continue?".format( env.projectPath )):
        return

    print (lSubdirs, lFiles)
    if lSubdirs:
        sh.rm('-rv', *lSubdirs, _out=sys.stdout)

    if lFiles:
        sh.rm('-v', *lFiles, _out=sys.stdout)
# ------------------------------------------------------------------------------


# ------------------------------------------------------------------------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号