mirror of
https://github.com/rclone/rclone.git
synced 2025-06-30 22:23:52 +02:00
Fix dropbox root directory listings
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user