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-3909134087
Daniel9186eac4bdbe
diff --git a/kernel/model/import.go b/kernel/model/import.goindex 18eaa0054b..d3accc4137 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -585,9 +585,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {return nil}if d.Name() == "assets" && d.IsDir() {- if syFiles, _ := filepath.Glob(filepath.Join(path, "*/*.sy")); 1 > len(syFiles) {- assetsDirs = append(assetsDirs, path)- }+ assetsDirs = append(assetsDirs, path)}return nil})@@ -631,9 +629,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {return nil}if d.Name() == "emojis" && d.IsDir() {- if syFiles, _ := filepath.Glob(filepath.Join(path, "*/*.sy")); 1 > len(syFiles) {- emojiDirs = append(emojiDirs, path)- }+ emojiDirs = append(emojiDirs, path)}return nil})