mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🐛 Data sync may cause data loss on Android 14 https://github.com/siyuan-note/siyuan/issues/10323
This commit is contained in:
parent
745c9bcf99
commit
7269b646e7
1 changed files with 1 additions and 9 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue