Python3移除(删除)文件及文件夹处理

效果不错呦!

import shutil,os
if os.path.exists(os.path.join(bizimage_filepath, image_name)):
	//移除文件
	os.remove(os.path.join(bizimage_filepath, image_name))
	//移除空文件夹
	shutil.rmtree(bizimage_filepath)

参考文档,写的不错:
https://www.cnblogs.com/linyihai/p/6239067.html

    原文作者:Quincy379
    原文地址: https://blog.csdn.net/qq_33733970/article/details/83376888
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞