Avoid creating session when cp detects object exists as directory (#1758)
This commit is contained in:
committed by
Harshavardhana
parent
e53fa1a5a2
commit
9be8aebfff
@@ -74,6 +74,15 @@ func (e ObjectAlreadyExists) Error() string {
|
||||
return "Object ‘" + e.Object + "’ already exists."
|
||||
}
|
||||
|
||||
// ObjectAlreadyExistsAsDirectory - typed return for XMinioObjectExistsAsDirectory
|
||||
type ObjectAlreadyExistsAsDirectory struct {
|
||||
Object string
|
||||
}
|
||||
|
||||
func (e ObjectAlreadyExistsAsDirectory) Error() string {
|
||||
return "Object ‘" + e.Object + "’ already exists as directory."
|
||||
}
|
||||
|
||||
// ObjectOnGlacier - object is of storage class glacier.
|
||||
type ObjectOnGlacier struct {
|
||||
Object string
|
||||
|
||||
Reference in New Issue
Block a user