Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

alias: Fix handling of Windows network paths

Nick Craig-Wood7b975bc1ff7c
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)
}