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)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
评论列表
文章目录