Browse Source

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

Daniel 1 year ago
parent
commit
66fe83bead
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/api/workspace.go

+ 1 - 1
kernel/api/workspace.go

@@ -173,7 +173,6 @@ func removeWorkspaceDirPhysically(c *gin.Context) {
 	}
 	}
 
 
 	path := arg["path"].(string)
 	path := arg["path"].(string)
-
 	if gulu.File.IsDir(path) {
 	if gulu.File.IsDir(path) {
 		err := os.RemoveAll(path)
 		err := os.RemoveAll(path)
 		if nil != err {
 		if nil != err {
@@ -183,6 +182,7 @@ func removeWorkspaceDirPhysically(c *gin.Context) {
 		}
 		}
 	}
 	}
 
 
+	logging.LogInfof("removed workspace [%s] physically", path)
 	if util.WorkspaceDir == path {
 	if util.WorkspaceDir == path {
 		os.Exit(logging.ExitCodeOk)
 		os.Exit(logging.ExitCodeOk)
 	}
 	}