Skip to content

Commit

Permalink
优化批量上传时的文件顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
holll committed Nov 1, 2023
1 parent 3a0aec9 commit 2b14ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2b14ae2

Please sign in to comment.