refactor: change DirPerm to DIRPERM for consistency
This commit is contained in:
parent
706ec0ebb4
commit
829c75f997
@ -24,7 +24,7 @@ import (
|
||||
)
|
||||
|
||||
const PERM = 0664
|
||||
const DirPERM = 0755
|
||||
const DIR_PERM = 0755
|
||||
|
||||
// FileInfo describes a file.
|
||||
type FileInfo struct {
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user