From 04eb96b50bfd027d95d8bcd554aa837e4bcbd9b6 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 1 Oct 2019 15:30:51 +0100 Subject: [PATCH] fichier: fix NewObject after lib/encoder changes This bug was introduced as part of the lib/encoder changes in 8d8fad724b0e85fa. It caused NewObject not to work for a file with escaped characters in it. --- backend/fichier/fichier.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/fichier/fichier.go b/backend/fichier/fichier.go index b07b63810..820a47e46 100644 --- a/backend/fichier/fichier.go +++ b/backend/fichier/fichier.go @@ -144,8 +144,7 @@ func (f *Fs) Features() *fs.Features { // // On Windows avoid single character remote names as they can be mixed // up with drive letters. -func NewFs(name string, rootleaf string, config configmap.Mapper) (fs.Fs, error) { - root := enc.FromStandardPath(rootleaf) +func NewFs(name string, root string, config configmap.Mapper) (fs.Fs, error) { opt := new(Options) err := configstruct.Set(config, opt) if err != nil {