Skip to content

feat(fs):add sorting to ILanZou driver#580

Closed
TGBUG wants to merge 1 commit intoOpenListTeam:mainfrom
TGBUG:main
Closed

feat(fs):add sorting to ILanZou driver#580
TGBUG wants to merge 1 commit intoOpenListTeam:mainfrom
TGBUG:main

Conversation

@TGBUG
Copy link
Copy Markdown

@TGBUG TGBUG commented Jul 4, 2025

No description provided.

@xrgzs
Copy link
Copy Markdown
Member

xrgzs commented Jul 4, 2025

Hi, I would like to know what problem this PR manual implementation of sorting solves? Could you provide a description?

@TGBUG
Copy link
Copy Markdown
Author

TGBUG commented Jul 4, 2025

Hi, I would like to know what problem this PR manual implementation of sorting solves? Could you provide a description?

The original ILanZou driver only supported the default sorting method (by modified time). I have added an option to sort files and folders by name, in ascending or descending order.
(Sorry, I'm using ChatGPT for translation)
中文原文:
原本ILanZou的驱动只能提供默认的排序(按照修改时间排序),我现在给他添加了根据文件(夹)的名字顺序或倒序排序的选项

@xrgzs
Copy link
Copy Markdown
Member

xrgzs commented Jul 6, 2025

原本ILanZou的驱动只能提供默认的排序(按照修改时间排序),我现在给他添加了根据文件(夹)的名字顺序或倒序排序的选项

明白了,只需要在 meta.go 里面给 driver.Config 中的 LocalSort 设置为 true 即可,不需要在驱动内自行实现排序。

@TGBUG
Copy link
Copy Markdown
Author

TGBUG commented Jul 8, 2025

好的,明白了,感谢指导

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants