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: Improve importing .sy.zip https://github.com/siyuan-note/siyuan/issues/17047#issuecomment-3906289100
Daniel2d2ef40a7c5d
diff --git a/kernel/model/import.go b/kernel/model/import.goindex 070f9a4fd5..18eaa0054b 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -581,7 +581,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {if err != nil {return err}- if d == nil {+ if d == nil || unzipRootPath == path {return nil}if d.Name() == "assets" && d.IsDir() {@@ -627,7 +627,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {if err != nil {return err}- if d == nil {+ if d == nil || unzipRootPath == path {return nil}if d.Name() == "emojis" && d.IsDir() {