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: Add Unzip API for HarmonyOS
Daniel4d48492a0596
diff --git a/kernel/harmony/kernel.go b/kernel/harmony/kernel.goindex fc9828997f..f692aa0777 100644--- a/kernel/harmony/kernel.go+++ b/kernel/harmony/kernel.go@@ -24,6 +24,7 @@ import ("strings""time"+ "github.com/88250/gulu""github.com/siyuan-note/filelock""github.com/siyuan-note/logging""github.com/siyuan-note/siyuan/kernel/cache"@@ -130,4 +131,11 @@ func DisableFeature(feature *C.char) {util.DisableFeature(C.GoString(feature))}+//export Unzip+func Unzip(zipFilePath, destination string) {+ if err := gulu.Zip.Unzip(zipFilePath, destination); nil != err {+ logging.LogErrorf("unzip [%s] failed: %s", zipFilePath, err)+ }+}+func main() {}