Writing out entries to output directory