diff --git a/storage.go b/storage.go index 51fcad2..2d7f2c2 100644 --- a/storage.go +++ b/storage.go @@ -274,6 +274,14 @@ func (s *Storage) Copy(name string, dest string) error { } } +// Rename is a wrapper over the Move function. +func (s *Storage) Rename(name, dest string) error { + return s.Move(name, dest) +} + +// Move moves a file from one place to another. +// It takes a file name, and the destination name as its parameter. +// The function returns an error, if any. func (s *Storage) Move(name string, dest string) error { if s.s3Client != nil { if _, err := s.s3Client.CopyObject(s.ctx, minio.CopyDestOptions{