Avoid creating session when cp detects object exists as directory (#1758)

This commit is contained in:
Anis Elleuch
2016-07-10 16:36:16 -07:00
committed by Harshavardhana
parent e53fa1a5a2
commit 9be8aebfff
3 changed files with 15 additions and 1 deletions
+9
View File
@@ -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