mirror of
https://github.com/rclone/rclone.git
synced 2025-01-11 00:40:03 +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
|
// 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…
Reference in New Issue
Block a user