Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

fs: fix String() method on fs.OverrideRemote

Nick Craig-Woodd6667d34e736
diff --git a/fs/override.go b/fs/override.go
index 014acb8ae..b06c0d070 100644
--- a/fs/override.go
+++ b/fs/override.go
@@ -23,6 +23,11 @@ func (o *OverrideRemote) Remote() string {
return o.remote
}
+// String returns the overridden remote name
+func (o *OverrideRemote) String() string {
+ return o.remote
+}
+
// MimeType returns the mime type of the underlying object or "" if it
// can't be worked out
func (o *OverrideRemote) MimeType(ctx context.Context) string {