mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
df59f67153
commit
fae3323182
2 changed files with 10 additions and 0 deletions
|
|
@ -323,6 +323,11 @@ func ListDocTree(boxID, listPath string, sortMode int, flashcard, showHidden boo
|
|||
}
|
||||
|
||||
continue
|
||||
} else {
|
||||
if strings.HasSuffix(file.name, ".sy") && !ast.IsNodeIDPattern(strings.TrimSuffix(file.name, ".sy")) {
|
||||
// 不以块 ID 命名的 .sy 文件不应该被加载到思源中 https://github.com/siyuan-note/siyuan/issues/16089
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
subFolder := filepath.Join(boxLocalPath, strings.TrimSuffix(file.path, ".sy"))
|
||||
|
|
|
|||
|
|
@ -201,6 +201,11 @@ func indexBox(boxID string) {
|
|||
continue
|
||||
}
|
||||
|
||||
if !ast.IsNodeIDPattern(strings.TrimSuffix(file.name, ".sy")) {
|
||||
// 不以块 ID 命名的 .sy 文件不应该被加载到思源中 https://github.com/siyuan-note/siyuan/issues/16089
|
||||
continue
|
||||
}
|
||||
|
||||
waitGroup.Add(1)
|
||||
invokeErr := p.Invoke(file)
|
||||
if nil != invokeErr {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue