mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02: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:
parent
e649cf4d50
commit
d6667d34e7
@ -23,6 +23,11 @@ func (o *OverrideRemote) Remote() string {
|
|||||||
return o.remote
|
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
|
// MimeType returns the mime type of the underlying object or "" if it
|
||||||
// can't be worked out
|
// can't be worked out
|
||||||
func (o *OverrideRemote) MimeType(ctx context.Context) string {
|
func (o *OverrideRemote) MimeType(ctx context.Context) string {
|
||||||
|
Loading…
Reference in New Issue
Block a user