mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
filefabric: fix finding directories in a case insensitive way #4830
This commit is contained in:
parent
4eac88babf
commit
78afe01d15
@ -536,7 +536,7 @@ func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) {
|
||||
func (f *Fs) FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut string, found bool, err error) {
|
||||
// Find the leaf in pathID
|
||||
found, err = f.listAll(ctx, pathID, true, false, func(item *api.Item) bool {
|
||||
if item.Name == leaf {
|
||||
if strings.EqualFold(item.Name, leaf) {
|
||||
pathIDOut = item.ID
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user