调整上传文件名排序规则#570 (#571)
This commit is contained in:
1 parent
194df2e368
commit
6c8a07dbc3
1 file changed
+1
-1
@@ -32,7 +32,7 @@ class UploadBase:
|
||||
for file_name in os.listdir('.'):
|
||||
if index in file_name and os.path.isfile(file_name):
|
||||
file_list.append(file_name)
|
||||
file_list = sorted(file_list)
|
||||
file_list = sorted(file_list, key=lambda x: os.path.getctime(x))
|
||||
|
||||
if len(file_list) == 0:
|
||||
return []
|
||||
|
||||
Reference in new issue
Block a user