Converted the FileFinder class to a generator