From 7269b646e7e62d8b9e15505a572587c6fc7d2710 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 6 Feb 2024 14:42:40 +0800 Subject: [PATCH] :bug: Data sync may cause data loss on Android 14 https://github.com/siyuan-note/siyuan/issues/10323 --- kernel/model/index_fix.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.go index d61069104..db58ccbe1 100644 --- a/kernel/model/index_fix.go +++ b/kernel/model/index_fix.go @@ -161,7 +161,7 @@ func resetDuplicateBlocksOnFileSys() { if info.IsDir() { if boxPath == path { - // 跳过根路径(笔记本文件夹) + // 跳过笔记本文件夹 return nil } @@ -172,14 +172,6 @@ func resetDuplicateBlocksOnFileSys() { if !ast.IsNodeIDPattern(info.Name()) { return nil } - - if util.IsEmptyDir(path) { - // 删除空的子文档文件夹 - if removeErr := filelock.Remove(path); nil != removeErr { - logging.LogErrorf("remove empty folder failed: %s", removeErr) - } - return nil - } return nil }