Use a binary search to find entries in resource directories.