mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +03:00
Fix sync bug when in TypeA and TypeB sync style source doesn't exist
This commit is contained in:
@@ -74,6 +74,7 @@ func (i InfoMessage) String() string {
|
||||
return i.Message
|
||||
}
|
||||
|
||||
// CopyMessage container for file copy messages
|
||||
type CopyMessage struct {
|
||||
Message string `json:"message"`
|
||||
Source string `json:"source"`
|
||||
@@ -83,3 +84,10 @@ type CopyMessage struct {
|
||||
func (c CopyMessage) String() string {
|
||||
return fmt.Sprintf("‘%s’ -> ‘%s’", c.Source, c.Target)
|
||||
}
|
||||
|
||||
// SyncMessage container for file sync messages, inherits CopyMessage
|
||||
type SyncMessage CopyMessage
|
||||
|
||||
func (s SyncMessage) String() string {
|
||||
return fmt.Sprintf("‘%s’ -> ‘%s’", s.Source, s.Target)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user