Browse Source

:art: 移除工作空间时不物理删除文件

Liang Ding 2 years ago
parent
commit
ec51d24901
1 changed files with 0 additions and 7 deletions
  1. 0 7
      kernel/api/workspace.go

+ 0 - 7
kernel/api/workspace.go

@@ -106,13 +106,6 @@ func removeWorkspaceDir(c *gin.Context) {
 		return
 		return
 	}
 	}
 
 
-	if err = os.RemoveAll(path); nil != err {
-		msg := fmt.Sprintf("remove workspace dir [%s] failed: %s", path, err)
-		ret.Code = -1
-		ret.Msg = msg
-		return
-	}
-
 	if util.WorkspaceDir == path {
 	if util.WorkspaceDir == path {
 		os.Exit(util.ExitCodeOk)
 		os.Exit(util.ExitCodeOk)
 	}
 	}