Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Assets starting with `.` should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821

Daniel7548b1008c2a
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index ab15c07ddf..2ca92b366e 100644
--- a/kernel/model/assets.go
+++ b/kernel/model/assets.go
@@ -742,11 +742,10 @@ func MissingAssets() (ret []string) {
// Assets starting with `.` should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821
if !gulu.File.IsExist(filepath.Join(util.DataDir, dest)) {
ret = append(ret, dest)
- continue
}
+ } else {
+ ret = append(ret, dest)
}
-
- ret = append(ret, dest)
continue
}
}