Made directory search enumerable