mirror of
https://github.com/rclone/rclone.git
synced 2025-12-15 07:43:35 +00: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