Spaces:
Runtime error
Runtime error
bug fix
Browse files- toolbox.py +1 -0
toolbox.py
CHANGED
@@ -178,6 +178,7 @@ def find_recent_files(directory):
|
|
178 |
|
179 |
for filename in os.listdir(directory):
|
180 |
file_path = os.path.join(directory, filename)
|
|
|
181 |
created_time = os.path.getctime(file_path)
|
182 |
if created_time >= one_minute_ago:
|
183 |
recent_files.append(file_path)
|
|
|
178 |
|
179 |
for filename in os.listdir(directory):
|
180 |
file_path = os.path.join(directory, filename)
|
181 |
+
if file_path.endswith('.log'): continue
|
182 |
created_time = os.path.getctime(file_path)
|
183 |
if created_time >= one_minute_ago:
|
184 |
recent_files.append(file_path)
|