mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
This commit is contained in:
parent
593e3141ab
commit
6fb69303c8
2 changed files with 4 additions and 2 deletions
|
|
@ -463,6 +463,7 @@
|
||||||
```
|
```
|
||||||
|
|
||||||
### 根据 ID 获取存储路径
|
### 根据 ID 获取存储路径
|
||||||
|
|
||||||
* `/api/filetree/getPathByID`
|
* `/api/filetree/getPathByID`
|
||||||
* 参数
|
* 参数
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1327,12 +1327,13 @@ func GetHPathByID(id string) (hPath string, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetPathByID(id string) (hPath string, err error) {
|
func GetPathByID(id string) (path string, err error) {
|
||||||
tree, err := LoadTreeByBlockID(id)
|
tree, err := LoadTreeByBlockID(id)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
hPath = tree.Path
|
|
||||||
|
path = tree.Path
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue