1
0
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:
Harshavardhana
2018-12-06 10:18:16 -08:00
committed by kannappanr
parent f3eaa54a32
commit 2073642656
4 changed files with 8 additions and 58 deletions

View File

@ -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()
}