Skip to content

Commit f07b660

Browse files
committed
replace validateDirExists wih CreateIfNotExistDir
1 parent 356218c commit f07b660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/manage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func manageUploadHandler(c *gin.Context) {
382382
return
383383
}
384384

385-
if err = utils.ValidateDirExists(core.BEAST_TEMP_DIR); err != nil {
385+
if err = utils.CreateIfNotExistDir(core.BEAST_TEMP_DIR); err != nil {
386386
if err := os.MkdirAll(core.BEAST_TEMP_DIR, 0755); err != nil {
387387
c.JSON(http.StatusInternalServerError, HTTPErrorResp{
388388
Error: fmt.Sprintf("Could not create dir %s: %s", core.BEAST_TEMP_DIR, err),

0 commit comments

Comments
 (0)