mirror of
https://github.com/rclone/rclone.git
synced 2025-12-30 23:23:30 +00:00
sugarsync: fix finding directories in a case insentive way #4830
This commit is contained in:
@@ -531,7 +531,7 @@ func (f *Fs) FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut strin
|
|||||||
//fs.Debugf(f, "FindLeaf(%q, %q)", pathID, leaf)
|
//fs.Debugf(f, "FindLeaf(%q, %q)", pathID, leaf)
|
||||||
// Find the leaf in pathID
|
// Find the leaf in pathID
|
||||||
found, err = f.listAll(ctx, pathID, nil, func(item *api.Collection) bool {
|
found, err = f.listAll(ctx, pathID, nil, func(item *api.Collection) bool {
|
||||||
if item.Name == leaf {
|
if strings.EqualFold(item.Name, leaf) {
|
||||||
pathIDOut = item.Ref
|
pathIDOut = item.Ref
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user