Efficient directory scan + search utilities