Feels a bit dirty to take a dependency on IRepository is=n a bunch of code that generally is repo agnostic. It could instead be a simple IFileFinder interface that would either wrap the repo functionality, or call Directory.GetFiles.