mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
Fix dropbox root directory listings
This commit is contained in:
parent
ad85f6e413
commit
36700d36a7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user