From 79f2e780c18052b3e9bb1fa5fd28a1c04f425863 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 24 Apr 2021 11:51:23 -0700 Subject: [PATCH] ensure name pattern checking is case sensitive --- weed/filer/filer_search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/filer_search.go b/weed/filer/filer_search.go index dd1f8c1ab..f43312cfa 100644 --- a/weed/filer/filer_search.go +++ b/weed/filer/filer_search.go @@ -64,7 +64,7 @@ func (f *Filer) doListPatternMatchedEntries(ctx context.Context, p util.FullPath } lastFileName, err = f.doListValidEntries(ctx, p, startFileName, inclusive, limit, prefix, func(entry *Entry) bool { - nameToTest := strings.ToLower(entry.Name()) + nameToTest := entry.Name() if len(namePatternExclude) > 0 { if matched, matchErr := filepath.Match(namePatternExclude, nameToTest); matchErr == nil && matched { missedCount++