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) {