An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Fix https://github.com/siyuan-note/siyuan/issues/16637
Daniel97232090feb7
diff --git a/kernel/model/import.go b/kernel/model/import.goindex 32f906c3e5..45053ba55c 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -262,6 +262,14 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {if d == nil {return nil}++ if ".json" == d.Name() { // https://github.com/siyuan-note/siyuan/issues/16637+ if removeErr := os.RemoveAll(path); nil != removeErr {+ logging.LogErrorf("remove empty av file [%s] failed: %s", path, removeErr)+ }+ return nil+ }+if !strings.HasSuffix(path, ".json") || !ast.IsNodeIDPattern(strings.TrimSuffix(d.Name(), ".json")) {return nil}