This commit is contained in:
parent
593e3141ab
commit
6fb69303c8
2 changed files with 4 additions and 2 deletions
|
@ -463,6 +463,7 @@
|
|||
```
|
||||
|
||||
### 根据 ID 获取存储路径
|
||||
|
||||
* `/api/filetree/getPathByID`
|
||||
* 参数
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue