ソースを参照

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

Daniel 1 年間 前
コミット
66fe83bead
1 ファイル変更1 行追加1 行削除
  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)
-
 	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)
 	}