mirror of
https://github.com/rclone/rclone.git
synced 2025-01-11 08:49:37 +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] != '/' {
|
if root[len(root)-1] != '/' {
|
||||||
root += "/"
|
root += "/"
|
||||||
}
|
}
|
||||||
|
} else if len(root) == 0 {
|
||||||
|
root = "/"
|
||||||
}
|
}
|
||||||
lowercase := strings.ToLower(path)
|
lowercase := strings.ToLower(path)
|
||||||
if !strings.HasPrefix(lowercase, root) {
|
if !strings.HasPrefix(lowercase, root) {
|
||||||
|
Loading…
Reference in New Issue
Block a user