From 2de94a8df387fb65d47ccb83e40314c1b9d58954 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 10 Feb 2025 21:34:00 +0800 Subject: [PATCH] fix --- test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 03e0a6a..0306207 100644 --- a/test.py +++ b/test.py @@ -284,7 +284,8 @@ if __name__ == "__main__": files = list(FileNaming.get_filenames_optimized(c_dir, ext_filter=['.CBZ'])) for file in files: # 获取文件的创建时间(仅在Linux/MacOS中可用) - create_time = time.localtime(os.path.getctime(file)) # 注意:st_birthtime 在Linux/MacOS中可用,但不是所有系统都支持 + # 修改时间 + create_time = time.localtime(os.utime(file)) # 注意:st_birthtime 在Linux/MacOS中可用,但不是所有系统都支持 # 格式化时间 formatted_time = time.strftime('%Y%m%d%H', create_time) if int(formatted_time) < 2025020401: