mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
⚡ Improve data sync performance for booting https://github.com/siyuan-note/siyuan/issues/13216
This commit is contained in:
parent
eba4dfa0da
commit
89f1887c3b
16 changed files with 153 additions and 113 deletions
|
|
@ -96,7 +96,7 @@ func RootChildIDs(rootID string) (ret []string) {
|
|||
if !gulu.File.IsDir(subFolder) {
|
||||
return
|
||||
}
|
||||
filelock.Walk(subFolder, func(path string, info fs.FileInfo, err error) error {
|
||||
filelock.Walk(subFolder, func(path string, d fs.DirEntry, err error) error {
|
||||
if strings.HasSuffix(path, ".sy") {
|
||||
name := filepath.Base(path)
|
||||
id := strings.TrimSuffix(name, ".sy")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue