forked from TrueCloudLab/rclone
sugarsync: fix finding directories in a case insentive way #4830
This commit is contained in:
parent
acb9e17eb3
commit
3e188495f5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue