feat(115_open): Add GetObjInfo to accelerate getting link#888
Merged
xrgzs merged 3 commits intoOpenListTeam:mainfrom Jul 31, 2025
Merged
feat(115_open): Add GetObjInfo to accelerate getting link#888xrgzs merged 3 commits intoOpenListTeam:mainfrom
xrgzs merged 3 commits intoOpenListTeam:mainfrom
Conversation
Member
|
@Seven66677731 SDK 的 PR 已合并,可以更新一下 go mod |
xrgzs
previously approved these changes
Jul 29, 2025
xrgzs
approved these changes
Jul 31, 2025
j2rong4cn
reviewed
Oct 3, 2025
| Get(ctx context.Context, path string) (model.Obj, error) | ||
| } | ||
|
|
||
| type GetObjInfo interface { |
Member
Author
There was a problem hiding this comment.
j2rong4cn
reviewed
Oct 15, 2025
Comment on lines
+134
to
+138
| func (d *Open115) GetObjInfo(ctx context.Context, path string) (model.Obj, error) { | ||
| if err := d.WaitLimit(ctx); err != nil { | ||
| return nil, err | ||
| } | ||
| resp, err := d.client.GetFolderInfoByPath(ctx, path) |
Member
There was a problem hiding this comment.
OpenList/drivers/115_open/meta.go
Line 10 in 2edc446
这里有个问题,115open用的是driver.RootID,当RootFolderID不是0的时候,既挂载的不是根目录,由于使用的是FolderID所以这里的path无法如期工作
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
115_open 支持通过path获取文件信息 可以避免目录递归获取 加速link的获取
相关pr OpenListTeam/115-sdk-go#2