forked from TrueCloudLab/rclone
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
1 changed files with 1 additions and 2 deletions
|
@ -144,8 +144,7 @@ func (f *Fs) Features() *fs.Features {
|
||||||
//
|
//
|
||||||
// On Windows avoid single character remote names as they can be mixed
|
// On Windows avoid single character remote names as they can be mixed
|
||||||
// up with drive letters.
|
// up with drive letters.
|
||||||
func NewFs(name string, rootleaf string, config configmap.Mapper) (fs.Fs, error) {
|
func NewFs(name string, root string, config configmap.Mapper) (fs.Fs, error) {
|
||||||
root := enc.FromStandardPath(rootleaf)
|
|
||||||
opt := new(Options)
|
opt := new(Options)
|
||||||
err := configstruct.Set(config, opt)
|
err := configstruct.Set(config, opt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue