🧑‍💻 Improve kernel API /api/filetree/getPathByID https://github.com/siyuan-note/siyuan/issues/14275

This commit is contained in:
Daniel 2025-03-04 20:22:48 +08:00
parent 2d2420794c
commit f8e6f02df8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 17 additions and 7 deletions

View file

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