4 Star 58 Fork 9

gfdgd xi / Waydroid 运行器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
RemovePycacheFile.py 521 Bytes
一键复制 编辑 原始数据 按行查看 历史
gfdgd xi 提交于 2023-08-17 12:06 . 移除.keep文件
#!/usr/bin/env python3
import os
def Remove(path):
for i in os.listdir(path):
nowPath = f"{path}/{i}"
if os.path.isdir(nowPath):
if i == "__pycache__":
os.system(f"rm -rfv '{nowPath}'")
else:
Remove(nowPath)
elif os.path.isfile(nowPath):
if i == ".keep":
os.system(f"rm -rfv '{nowPath}'")
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
debPath = f"{programPath}/"
Remove(debPath)
1
https://gitee.com/gfdgd-xi/waydroid-runner.git
git@gitee.com:gfdgd-xi/waydroid-runner.git
gfdgd-xi
waydroid-runner
Waydroid 运行器
master

搜索帮助