mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
ensure name pattern checking is case sensitive
This commit is contained in:
parent
ddc8643ee0
commit
79f2e780c1
|
@ -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…
Reference in a new issue