Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提供列出文件 API #7765

Closed
zuoez02 opened this issue Mar 24, 2023 · 0 comments
Closed

提供列出文件 API #7765

zuoez02 opened this issue Mar 24, 2023 · 0 comments
Assignees
Milestone

Comments

@zuoez02
Copy link
Contributor

zuoez02 commented Mar 24, 2023

在什么情况下你需要该特性?In what scenarios do you need this feature?

插件系统需要遍历工作空间data下的目录,以获得对应结构的文件

描述可能的最优解决方案 Describe the optimal solution

API: /api/file/readDir
Request Body: { path: dirPath }
Response Body { files: [
{ type: 'file', name: 'abc.txt' },
{ type: 'folder', name: 'plugins' },
] }

是否需要过滤掉软连接硬链接,还需要思考一下,我这没有太特别的想法。

描述候选的解决方案 Describe the candidate solution

No response

其他信息 Other information

No response

@88250 88250 self-assigned this Mar 24, 2023
@88250 88250 added this to the 2.8.1 milestone Mar 24, 2023
@88250 88250 changed the title readDir API需求 提供列出文件 API Mar 24, 2023
88250 added a commit that referenced this issue Mar 24, 2023
@88250 88250 closed this as completed Mar 24, 2023
88250 added a commit that referenced this issue Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants