Update index.py

This commit is contained in:
midoks
2021-11-23 17:16:26 +08:00
parent a4bfa2d10d
commit 1ad68ac29a
+5 -3
View File
@@ -129,13 +129,15 @@ def cleanLog():
print(i)
mw.execShell(i)
# 常用日志
clogcom = [
"/var/log/messages",
"/var/log/btmp",
"/var/log/wtmp",
]
for i in clogcom:
print(i)
mw.execShell("echo \"\" > " + i)
if os.path.exists(i)
mw.execShell("echo \"\" > " + i)
l = os.listdir(rootDir)
for x in range(len(l)):