Browse Source

ensure name pattern checking is case sensitive

pull/2030/head
Chris Lu 4 years ago
parent
commit
79f2e780c1
  1. 2
      weed/filer/filer_search.go

2
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++

Loading…
Cancel
Save