From d6667d34e73629849b4628ae51b646c3f3e0edee Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 4 May 2023 17:35:06 +0100 Subject: [PATCH] fs: fix String() method on fs.OverrideRemote Before this fix it was returning the base objects string rather than the overridden remote. --- fs/override.go | 5 +++++ 1 file changed, 5 insertions(+) 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 {