Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: macOS 端对工作空间放置在 iCloud 路径下做检查 https://github.com/siyuan-note/siyuan/issues/7747

Liang Dingd080cf09c5ad
diff --git a/kernel/util/runtime.go b/kernel/util/runtime.go
index 50df100962..8da73d1df6 100644
--- a/kernel/util/runtime.go
+++ b/kernel/util/runtime.go
@@ -261,7 +261,7 @@ func isICloudPath(absPath string) bool {
// macOS 端对工作空间放置在 iCloud 路径下做检查 https://github.com/siyuan-note/siyuan/issues/7747
- iCloudRoot := "~/Library/Mobile\\ Documents"
+ iCloudRoot := filepath.Join(HomeDir, "Library", "Mobile Documents")
err := filepath.Walk(iCloudRoot, func(path string, info os.FileInfo, err error) error {
if nil != err {
return err