Commit 334135ed authored by wanli's avatar wanli

update

parent 27e0db76
...@@ -51,8 +51,9 @@ def removeExpiredFiles(): ...@@ -51,8 +51,9 @@ def removeExpiredFiles():
file_count = len(os.listdir(path)) file_count = len(os.listdir(path))
if file_count > 10: if file_count > 10:
file_list = getSortDir(path)[:-10] file_list = getSortDir(path)[-10:]
for f in file_list: for f in file_list:
print(f)
os.remove(f) os.remove(f)
def getModifyTime(): def getModifyTime():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment