Spaces:
Sleeping
Sleeping
小问题修复
Browse files- 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.
|
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)
|