1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00

premiumizeme: fix finding directories in a case insensitive way #4830

This commit is contained in:
Nick Craig-Wood 2021-01-27 14:01:38 +00:00
parent b4217fabd3
commit 4eac88babf

View File

@ -345,7 +345,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
}