Python 删除含有只读文件(夹)的文件夹
摘要:
def rm_read_only(fn, tmp, info): if os.path.isfile(tmp): os.chmod(tmp, stat.S_IWRITE) os.remove(tmp) elif os.path.isdir(tmp): os.chmod(tmp, stat.S_IWRITE) sh... 阅读全文
posted @ 2019-08-14 16:47 liujx2019 阅读(1077) 评论(0) 推荐(1) 编辑