Skip to content

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

:art: Physically delete a workspace on the mobile https://github.com/siyuan-note/siyuan/issues/9134

Daniel66fe83beadcf
diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go
index 951b62db56..1b65d95f4a 100644
--- a/kernel/api/workspace.go
+++ b/kernel/api/workspace.go
@@ -173,7 +173,6 @@ func removeWorkspaceDirPhysically(c *gin.Context) {
}
path := arg["path"].(string)
-
if gulu.File.IsDir(path) {
err := os.RemoveAll(path)
if nil != err {
@@ -183,6 +182,7 @@ func removeWorkspaceDirPhysically(c *gin.Context) {
}
}
+ logging.LogInfof("removed workspace [%s] physically", path)
if util.WorkspaceDir == path {
os.Exit(logging.ExitCodeOk)
}