From f99a7bb6f61404836bc7a8fb52e964ee8ac7af46 Mon Sep 17 00:00:00 2001 From: qingxu fu <505030475@qq.com> Date: Thu, 6 Apr 2023 18:26:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- toolbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox.py b/toolbox.py index 6678deca..6f89a30f 100644 --- a/toolbox.py +++ b/toolbox.py @@ -279,7 +279,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) + created_time = os.path.getmtime(file_path) if created_time >= one_minute_ago: if os.path.isdir(file_path): continue recent_files.append(file_path)