forked from TrueCloudLab/rclone
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
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue