From 829c75f9975bbcc0ea04d6d1f466406ac7de14b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EA=B4=91=EC=98=A4?= Date: Mon, 31 Jul 2023 19:32:53 +0900 Subject: [PATCH] refactor: change DirPerm to DIRPERM for consistency --- files/file.go | 2 +- http/tus_handlers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/file.go b/files/file.go index 051259a0..5372246c 100644 --- a/files/file.go +++ b/files/file.go @@ -24,7 +24,7 @@ import ( ) const PERM = 0664 -const DirPERM = 0755 +const DIR_PERM = 0755 // FileInfo describes a file. type FileInfo struct { diff --git a/http/tus_handlers.go b/http/tus_handlers.go index 5e49f6f4..04ea1202 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, files.DirPERM); mkdirErr != nil { + if mkdirErr := d.user.Fs.MkdirAll(dirPath, files.DIR_PERM); mkdirErr != nil { return http.StatusInternalServerError, err } }