heavily mock tested IterateDirectoriesImpl