diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-05-09 12:21:53 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-05-09 12:21:53 -0600 |
commit | a97f6f500f4ec71e842a63e2f2a48f133c2180d4 (patch) | |
tree | cd2b693ae3fdc4160a800145d09416d7d6cf1cc4 /contrib | |
parent | 8110ecaf4009cf97a35661dced642b260ff63282 (diff) |
correct direction of the binary search for dir default files
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fs/dir.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |