From a97f6f500f4ec71e842a63e2f2a48f133c2180d4 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 9 May 2023 12:21:53 -0600 Subject: correct direction of the binary search for dir default files --- contrib/fs/dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/fs') diff --git a/contrib/fs/dir.go b/contrib/fs/dir.go index 259ce1b..b00fe5c 100644 --- a/contrib/fs/dir.go +++ b/contrib/fs/dir.go @@ -75,7 +75,7 @@ func ResolveDirectoryDefault( for _, filename := range filenames { idx := sort.Search(len(entries), func(i int) bool { - return entries[i].Name() <= filename + return entries[i].Name() >= filename }) if idx < len(entries) && entries[idx].Name() == filename { -- cgit v1.2.3