qingxu99 commited on
Commit
1055fda
1 Parent(s): 0b3f7b8

小问题修复

Browse files
Files changed (1) hide show
  1. toolbox.py +1 -1
toolbox.py CHANGED
@@ -279,7 +279,7 @@ def find_recent_files(directory):
279
  for filename in os.listdir(directory):
280
  file_path = os.path.join(directory, filename)
281
  if file_path.endswith('.log'): continue
282
- created_time = os.path.getctime(file_path)
283
  if created_time >= one_minute_ago:
284
  if os.path.isdir(file_path): continue
285
  recent_files.append(file_path)
 
279
  for filename in os.listdir(directory):
280
  file_path = os.path.join(directory, filename)
281
  if file_path.endswith('.log'): continue
282
+ created_time = os.path.getmtime(file_path)
283
  if created_time >= one_minute_ago:
284
  if os.path.isdir(file_path): continue
285
  recent_files.append(file_path)