Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

ensure name pattern checking is case sensitive

Chris Lu79f2e780c180
diff --git a/weed/filer/filer_search.go b/weed/filer/filer_search.go
index dd1f8c1ab1..f43312cfa5 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++