Commit a0c8bd49 authored by wanli's avatar wanli

update

parent fba98ce6
...@@ -51,7 +51,7 @@ def removeExpiredFiles(): ...@@ -51,7 +51,7 @@ 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(os.sep.join([path, f])) print(os.sep.join([path, f]))
os.remove(os.sep.join([path, f])) os.remove(os.sep.join([path, f]))
......
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