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

This commit is contained in:
Daniel 2023-09-08 16:12:22 +08:00
parent db690132d7
commit 66fe83bead
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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)
}