mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🐛 Data sync may cause data loss on Android 14 https://github.com/siyuan-note/siyuan/issues/10205
This commit is contained in:
parent
dfe8f1317c
commit
c00dc1cc5c
13 changed files with 36 additions and 33 deletions
|
|
@ -29,6 +29,7 @@ import (
|
|||
"github.com/88250/lute"
|
||||
"github.com/88250/lute/ast"
|
||||
"github.com/88250/lute/parse"
|
||||
"github.com/siyuan-note/filelock"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
|
|
@ -101,7 +102,7 @@ func RootChildIDs(rootID string) (ret []string) {
|
|||
if !gulu.File.IsDir(subFolder) {
|
||||
return
|
||||
}
|
||||
filepath.Walk(subFolder, func(path string, info fs.FileInfo, err error) error {
|
||||
filelock.Walk(subFolder, func(path string, info fs.FileInfo, 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