mirror of
https://github.com/siyuan-note/siyuan
synced 2026-04-21 13:37:52 +00:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
3b3fed1f27
commit
d43aa6b4c2
1 changed files with 7 additions and 1 deletions
|
|
@ -135,13 +135,19 @@ func refreshDocInfo0(tree *parse.Tree, size uint64) {
|
|||
}
|
||||
|
||||
subFileCount := 0
|
||||
subFiles, err := os.ReadDir(filepath.Join(util.DataDir, tree.Box, strings.TrimSuffix(tree.Path, ".sy")))
|
||||
subDir := filepath.Join(util.DataDir, tree.Box, strings.TrimSuffix(tree.Path, ".sy"))
|
||||
subFiles, err := os.ReadDir(subDir)
|
||||
if err == nil {
|
||||
for _, subFile := range subFiles {
|
||||
if "true" == tree.Root.IALAttr("custom-hidden") {
|
||||
continue
|
||||
}
|
||||
|
||||
subDocIAL := filesys.DocIAL(filepath.Join(subDir, subFile.Name()))
|
||||
if "true" == subDocIAL["custom-hidden"] {
|
||||
continue
|
||||
}
|
||||
|
||||
if strings.HasSuffix(subFile.Name(), ".sy") {
|
||||
subFileCount++
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue