mirror of
https://github.com/minio/mc.git
synced 2025-07-28 20:01:58 +03:00
Allow copying file onto itself (#2617)
This allows encrypting an unencrypted file using server side CopyObject API.
This commit is contained in:
committed by
kannappanr
parent
f3eaa54a32
commit
2073642656
@ -111,10 +111,3 @@ var errSourceIsDir = func(URL string) *probe.Error {
|
||||
msg := "Source `" + URL + "` is a folder."
|
||||
return probe.NewError(sourceIsDirErr(errors.New(msg))).Untrace()
|
||||
}
|
||||
|
||||
type sourceTargetSameErr error
|
||||
|
||||
var errSourceTargetSame = func(URL string) *probe.Error {
|
||||
msg := "Source and target URL can not be same : " + URL
|
||||
return probe.NewError(sourceTargetSameErr(errors.New(msg))).Untrace()
|
||||
}
|
||||
|
Reference in New Issue
Block a user