refactor: change DirPerm to DIRPERM for consistency

This commit is contained in:
이광오 2023-07-31 19:32:53 +09:00
parent 706ec0ebb4
commit 829c75f997
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ import (
) )
const PERM = 0664 const PERM = 0664
const DirPERM = 0755 const DIR_PERM = 0755
// FileInfo describes a file. // FileInfo describes a file.
type FileInfo struct { type FileInfo struct {

View File

@ -32,7 +32,7 @@ func tusPostHandler() handleFunc {
dirPath := filepath.Dir(r.URL.Path) dirPath := filepath.Dir(r.URL.Path)
if _, statErr := d.user.Fs.Stat(dirPath); os.IsNotExist(statErr) { 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 return http.StatusInternalServerError, err
} }
} }