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

This commit is contained in:
Daniel 2024-02-06 14:42:40 +08:00
parent 745c9bcf99
commit 7269b646e7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}