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

Fix dropbox root directory listings

Nick Craig-Wood36700d36a701
diff --git a/dropbox/dropbox.go b/dropbox/dropbox.go
index fbffeaa9b..cb2fa9b96 100644
--- a/dropbox/dropbox.go
+++ b/dropbox/dropbox.go
@@ -234,6 +234,8 @@ func strip(path, root string) (string, error) {
if root[len(root)-1] != '/' {
root += "/"
}
+ } else if len(root) == 0 {
+ root = "/"
}
lowercase := strings.ToLower(path)
if !strings.HasPrefix(lowercase, root) {