fixup! Allow result object to be an actual object
Add test for empty directories
Ignore directories of the name of the requested file