Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-28 09:39:04 +08:00
parent 2e9cde72d6
commit bd700efd6f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -38,10 +38,18 @@ import (
) )
func refreshDocInfo(tree *parse.Tree) { func refreshDocInfo(tree *parse.Tree) {
if nil == tree {
return
}
refreshDocInfoWithSize(tree, filesys.TreeSize(tree)) refreshDocInfoWithSize(tree, filesys.TreeSize(tree))
} }
func refreshDocInfoWithSize(tree *parse.Tree, size uint64) { func refreshDocInfoWithSize(tree *parse.Tree, size uint64) {
if nil == tree {
return
}
refreshDocInfo0(tree, size) refreshDocInfo0(tree, size)
refreshParentDocInfo(tree) refreshParentDocInfo(tree)
} }