mirror of
https://github.com/minio/minio.git
synced 2025-11-26 04:26:12 -05:00
fs: Handle cases of PutObject for an existing prefix. (#1478)
This commit is contained in:
@@ -40,7 +40,7 @@ func toObjectErr(err error, params ...string) error {
|
||||
return StorageInsufficientReadResources{}
|
||||
case errWriteQuorum:
|
||||
return StorageInsufficientWriteResources{}
|
||||
case errIsNotRegular:
|
||||
case errIsNotRegular, errFileAccessDenied:
|
||||
if len(params) >= 2 {
|
||||
return ObjectExistsAsPrefix{
|
||||
Bucket: params[0],
|
||||
|
||||
Reference in New Issue
Block a user