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: 启动时移除处于网盘路径下的工作空间 https://github.com/siyuan-note/siyuan/issues/7790
Liang Dingf483bb921eab
diff --git a/kernel/util/working.go b/kernel/util/working.goindex 3807560045..0050668240 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -207,6 +207,7 @@ func initWorkspaceDir(workspaceArg string) {}var workspacePaths []string+ var cloudDrive bool // 启动时移除处于网盘路径下的工作空间 https://github.com/siyuan-note/siyuan/issues/7790if !gulu.File.IsExist(workspaceConf) {WorkspaceDir = defaultWorkspaceDirif "" != workspaceArg {@@ -214,11 +215,11 @@ func initWorkspaceDir(workspaceArg string) {}} else {workspacePaths, _ = ReadWorkspacePaths()- // 启动时移除处于网盘路径下的工作空间 https://github.com/siyuan-note/siyuan/issues/7790var tmp []stringfor _, workspacePath := range workspacePaths {if IsCloudDrivePath(workspacePath) {logging.LogWarnf("skip the cloud drive path [%s]", workspacePath)+ cloudDrive = truecontinue}tmp = append(tmp, workspacePath)@@ -248,6 +249,10 @@ func initWorkspaceDir(workspaceArg string) {os.Exit(logging.ExitCodeInitWorkspaceErr)}+ if cloudDrive {+ os.Exit(logging.ExitCodeFileSysErr)+ }+ConfDir = filepath.Join(WorkspaceDir, "conf")DataDir = filepath.Join(WorkspaceDir, "data")RepoDir = filepath.Join(WorkspaceDir, "repo")