Daniel 2024-08-28 17:47:50 +08:00
parent 593e3141ab
commit 6fb69303c8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 2 deletions

View file

@ -463,6 +463,7 @@
```
### 根据 ID 获取存储路径
* `/api/filetree/getPathByID`
* 参数

View file

@ -1327,12 +1327,13 @@ func GetHPathByID(id string) (hPath string, err error) {
return
}
func GetPathByID(id string) (hPath string, err error) {
func GetPathByID(id string) (path string, err error) {
tree, err := LoadTreeByBlockID(id)
if nil != err {
return
}
hPath = tree.Path
path = tree.Path
return
}