From 66fe83beadcfed92d5070e824573c25cdb985d7b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 8 Sep 2023 16:12:22 +0800 Subject: [PATCH] :art: Physically delete a workspace on the mobile https://github.com/siyuan-note/siyuan/issues/9134 --- kernel/api/workspace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go index 951b62db5..1b65d95f4 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) }