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: macOS 端对工作空间放置在 iCloud 路径下做检查 https://github.com/siyuan-note/siyuan/issues/7747
Liang Ding932ebc1ad9bf
diff --git a/kernel/util/runtime.go b/kernel/util/runtime.goindex 8da73d1df6..66d8a80446 100644--- a/kernel/util/runtime.go+++ b/kernel/util/runtime.go@@ -267,6 +267,26 @@ func isICloudPath(absPath string) bool {return err}+ if 0 != info.Mode()&os.ModeSymlink && 0 != info.Mode()&os.ModeDir {+ resolved, symErr := filepath.EvalSymlinks(path)+ if nil != symErr {+ logging.LogErrorf("resolve symlink [%s] failed: %s", path, symErr)+ return nil+ }+ filepath.Walk(resolved, func(path string, info os.FileInfo, err error) error {+ if nil != err {+ return err+ }++ if absPath == strings.ToLower(path) {+ logging.LogInfof("under symlink path: %s", path)+ return fmt.Errorf("found")+ }++ return nil+ })+ }+logging.LogInfof("path: %s", path)return nil})