Skip to content

提供删除文件 API #7678

Closed
Closed
@zuoez02

Description

@zuoez02

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

插件系统需要卸载插件,移除本地的插件文件。

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

/api/file/removeFile,参数{ path: string, recursive: boolean, includeFolder: boolean }

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

No response

其他信息 Other information

No response

Activity

changed the title [-][Feature Request] Request for remove file API[/-] [+]提供删除文件 API[/+] on Mar 15, 2023
self-assigned this
on Mar 15, 2023
added this to the 2.8.0 milestone on Mar 15, 2023
added a commit that references this issue on Mar 15, 2023
88250

88250 commented on Mar 15, 2023

@88250
Member

参数{ path: string, recursive: boolean, includeFolder: boolean }

这里只传一个 path 就行了,如果传入的是文件夹路径,自动递归删除。

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@zuoez02

      Issue actions

        提供删除文件 API · Issue #7678 · siyuan-note/siyuan