From 706ec0ebb42e2edd086892a6399dcc899642093e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EA=B4=91=EC=98=A4?= Date: Sun, 30 Jul 2023 18:46:57 +0900 Subject: [PATCH] fix: using the files constant --- http/tus_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/tus_handlers.go b/http/tus_handlers.go index a8ae6da1..5e49f6f4 100644 --- a/http/tus_handlers.go +++ b/http/tus_handlers.go @@ -32,7 +32,7 @@ func tusPostHandler() handleFunc { dirPath := filepath.Dir(r.URL.Path) if _, statErr := d.user.Fs.Stat(dirPath); os.IsNotExist(statErr) { - if mkdirErr := d.user.Fs.MkdirAll(dirPath, 0755); mkdirErr != nil { + if mkdirErr := d.user.Fs.MkdirAll(dirPath, files.DirPERM); mkdirErr != nil { return http.StatusInternalServerError, err } }