1
0
mirror of https://github.com/minio/mc.git synced 2025-11-12 01:02:26 +03:00

mirror: Deprecate --force instead add --overwrite (#2318)

Fixes #2317
This commit is contained in:
Harshavardhana
2017-11-30 03:21:17 -08:00
committed by Nitish Tiwari
parent a63a1f7eca
commit dfffc1e7cc
5 changed files with 70 additions and 48 deletions

View File

@@ -182,3 +182,12 @@ func (e UnexpectedExcessRead) Error() string {
msg := fmt.Sprintf("Received excess data on input reader. Expected only `%d` bytes, but received `%d` bytes.", e.TotalSize, e.TotalWritten)
return msg
}
// SameFile - source and destination are same files.
type SameFile struct {
Source, Destination string
}
func (e SameFile) Error() string {
return fmt.Sprintf("'%s' and '%s' are the same file", e.Source, e.Destination)
}