replaced generator with good old list, so we can check for empty directories, file sizes etc.