This commit is contained in:
Daniel 2023-05-23 09:01:37 +08:00
parent 68a674b11e
commit e4229f2bad
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 82 additions and 1 deletions

View file

@ -42,6 +42,7 @@
* [获取文件](#获取文件)
* [写入文件](#写入文件)
* [删除文件](#删除文件)
* [重命名文件](#重命名文件)
* [列出文件](#列出文件)
* [导出](#导出)
* [导出 Markdown 文本](#导出-markdown-文本)
@ -995,6 +996,29 @@
}
```
### 重命名文件
* `/api/file/renameFile`
* 参数
```json
{
"path": "/data/assets/image-20230523085812-k3o9t32.png",
"newPath": "/data/assets/test-20230523085812-k3o9t32.png"
}
```
* `path`:工作空间路径下的文件路径
* `newPath`:新的文件路径
* 返回值
```json
{
"code": 0,
"msg": "",
"data": null
}
```
### 列出文件
* `/api/file/readDir`