forked from TrueCloudLab/rclone
Fix dropbox root directory listings
This commit is contained in:
parent
ad85f6e413
commit
36700d36a7
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue