diff --git a/backend/alias/alias.go b/backend/alias/alias.go index 3fcf6dc14..df41019dd 100644 --- a/backend/alias/alias.go +++ b/backend/alias/alias.go @@ -51,9 +51,10 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) { if err != nil { return nil, err } - root = path.Join(fsPath, filepath.ToSlash(root)) if configName == "local" { + root = filepath.Join(fsPath, root) return fs.NewFs(root) } + root = path.Join(fsPath, filepath.ToSlash(root)) return fs.NewFs(configName + ":" + root) }