mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +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
|
|
@ -27,6 +27,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/siyuan-note/filelock"
|
||||
"github.com/siyuan-note/logging"
|
||||
)
|
||||
|
||||
|
|
@ -166,7 +167,7 @@ func GetChildDocDepth(treeAbsPath string) (ret int) {
|
|||
|
||||
baseDepth := strings.Count(filepath.ToSlash(treeAbsPath), "/")
|
||||
depth := 1
|
||||
filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
|
||||
filelock.Walk(dir, func(path string, info os.FileInfo, err error) error {
|
||||
p := filepath.ToSlash(path)
|
||||
currentDepth := strings.Count(p, "/")
|
||||
if depth < currentDepth {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue