use a FileInfo object of the directory when generting the filelist

This replaces about 6 calls to the filesystem by one cache call.

cc @PVince81 @DeepDiver1975