mirror of
https://github.com/minio/minio.git
synced 2025-11-22 10:37:42 -05:00
Translate storage access denied error to S3 Access Denied response (#3015)
This commit is contained in:
committed by
Harshavardhana
parent
8876e0a80a
commit
41f9ab1c69
@@ -115,6 +115,9 @@ func readDir(dirPath string) (entries []string, err error) {
|
||||
if os.IsNotExist(err) {
|
||||
return nil, errFileNotFound
|
||||
}
|
||||
if os.IsPermission(err) {
|
||||
return nil, errFileAccessDenied
|
||||
}
|
||||
|
||||
// File path cannot be verified since one of the parents is a file.
|
||||
if strings.Contains(err.Error(), "not a directory") {
|
||||
|
||||
Reference in New Issue
Block a user