1
mirror of https://github.com/rclone/rclone synced 2024-11-24 01:26:25 +01:00

fs: fix String() method on fs.OverrideRemote

Before this fix it was returning the base objects string rather than
the overridden remote.
This commit is contained in:
Nick Craig-Wood 2023-05-04 17:35:06 +01:00
parent e649cf4d50
commit d6667d34e7

View File

@ -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 {