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

dropbox: Fix crypt+obfuscate on dropbox - fixes #2191

Nick Craig-Wood05e32cfcf9aa
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go
index 59277a6f9..3453da9a7 100644
--- a/backend/dropbox/dropbox.go
+++ b/backend/dropbox/dropbox.go
@@ -240,11 +240,9 @@ func NewFs(name, root string) (fs.Fs, error) {
// Sets root in f
func (f *Fs) setRoot(root string) {
f.root = strings.Trim(root, "/")
- lowerCaseRoot := strings.ToLower(f.root)
-
- f.slashRoot = "/" + lowerCaseRoot
+ f.slashRoot = "/" + f.root
f.slashRootSlash = f.slashRoot
- if lowerCaseRoot != "" {
+ if f.root != "" {
f.slashRootSlash += "/"
}
}