فهرست منبع

:bug: Data sync may cause data loss on Android 14 https://github.com/siyuan-note/siyuan/issues/10323

Daniel 1 سال پیش
والد
کامیت
7269b646e7
1فایلهای تغییر یافته به همراه1 افزوده شده و 9 حذف شده
  1. 1 9
      kernel/model/index_fix.go

+ 1 - 9
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
 			}