def clean_path(path):
if not path:
logging.info("Directory clean up - empty dir passed")
return
logging.info("Directory clean up - removing %s", path)
try:
# TODO: need to use osfs-rmdir on VSAN. For now jus yell if it failed
os.removedirs(path)
except Exception as e:
logging.warning("Directory clean up failed - %s, err: %s", path, e)
vmdk_ops_test.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录