mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
247d8e46f1
commit
a4059c62bc
3 changed files with 37 additions and 14 deletions
|
|
@ -298,6 +298,10 @@ func indexTreeInFilesystem(blockID string) error {
|
|||
}
|
||||
|
||||
func loadParentTree(tree *parse.Tree) (ret *parse.Tree) {
|
||||
if nil == tree {
|
||||
return
|
||||
}
|
||||
|
||||
boxDir := filepath.Join(util.DataDir, tree.Box)
|
||||
parentDir := path.Dir(tree.Path)
|
||||
if parentDir == boxDir || parentDir == "/" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue