|
@@ -54,9 +54,8 @@ class JobManage(object):
|
|
# methods.remove_file(file_path)
|
|
# methods.remove_file(file_path)
|
|
|
|
|
|
# --- cut list ---
|
|
# --- cut list ---
|
|
- # remove_count = 30 # 按天
|
|
|
|
- remove_count = 30 * 24 # 按小时
|
|
|
|
- for file_name in file_name_list[remove_count:]:
|
|
|
|
- file_path = os.path.join(save_dir, file_name)
|
|
|
|
- if methods.is_file(file_path):
|
|
|
|
- methods.remove_file(file_path)
|
|
|
|
|
|
+ # remove_count = 30 * 24 # 按小时
|
|
|
|
+ # for file_name in file_name_list[remove_count:]:
|
|
|
|
+ # file_path = os.path.join(save_dir, file_name)
|
|
|
|
+ # if methods.is_file(file_path):
|
|
|
|
+ # methods.remove_file(file_path)
|