Skip to content

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

:art: Ignore hidden files when generating asset history https://github.com/siyuan-note/siyuan/issues/11253

Daniel1cbc4c630661
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index 8b85eb24de..aa79daa479 100644
--- a/kernel/model/assets.go
+++ b/kernel/model/assets.go
@@ -688,6 +688,10 @@ func RemoveUnusedAssets() (ret []string) {
for _, p := range unusedAssets {
historyPath := filepath.Join(historyDir, p)
if p = filepath.Join(util.DataDir, p); filelock.IsExist(p) {
+ if filelock.IsHidden(p) {
+ continue
+ }
+
if err = filelock.Copy(p, historyPath); nil != err {
return
}