fix: using the files constant

This commit is contained in:
이광오 2023-07-30 18:46:57 +09:00
parent 5bc70569ae
commit 706ec0ebb4

View File

@ -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
}
}