From 05e32cfcf9aac74ea788d986aaa7d699509ab7f5 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 5 Apr 2018 15:28:40 +0100 Subject: [PATCH] dropbox: Fix crypt+obfuscate on dropbox - fixes #2191 Before this change we lowercased the dropbox root directory. This was likely a leftover from when we used to build a dictionary to translate the cases of dropbox files. Now with the v2 API we can rely on dropbox to do that for us, so we no longer need to lowercase the root. This fixes issues using crypt with name obfuscation on dropbox. --- backend/dropbox/dropbox.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 += "/" } }