mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
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:
parent
b9bd15a8c9
commit
04eb96b50b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user