This commit is contained in:
Your Name 2023-03-27 15:16:50 +08:00
parent 7c7b1cb030
commit 248bcb7095

View File

@ -178,6 +178,7 @@ def find_recent_files(directory):
for filename in os.listdir(directory):
file_path = os.path.join(directory, filename)
if file_path.endswith('.log'): continue
created_time = os.path.getctime(file_path)
if created_time >= one_minute_ago:
recent_files.append(file_path)