Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-01 10:46:21 +08:00
parent 247d8e46f1
commit a4059c62bc
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 37 additions and 14 deletions

View file

@ -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 == "/" {