From 2b14ae21641affa5614e39197f85126f14c5bd97 Mon Sep 17 00:00:00 2001 From: hollc <380460708@qq.com> Date: Wed, 1 Nov 2023 20:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=B9=E9=87=8F=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=97=B6=E7=9A=84=E6=96=87=E4=BB=B6=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tool.py b/tools/tool.py index bd1f103..309e20c 100644 --- a/tools/tool.py +++ b/tools/tool.py @@ -191,7 +191,7 @@ def get_all_files(path): # 获取文件的绝对路径 filepath = os.path.join(root, filename) all_files.append(filepath) - return all_files + return sorted(all_files) def GetThumb(file_path: str) -> bytes: