fichier: fix NewObject after lib/encoder changes

This bug was introduced as part of the lib/encoder changes in
8d8fad724b.  It caused NewObject not to work for a file with
escaped characters in it.
This commit is contained in:
Nick Craig-Wood 2019-10-01 15:30:51 +01:00
parent b9bd15a8c9
commit 04eb96b50b

View File

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