Exporting directory to a spreadsheet