scraperwiki / spreadsheet-download-tool

A ScraperWiki plugin for downloading data from a box as a CSV or Excel spreadsheet
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

It's possible to download a file which is currently being written #6

Closed fawkesley closed 11 years ago

fawkesley commented 11 years ago

If I share a link to a CSV file with my friend (as encouraged), then later hit regenerate, it's possible for my friend to follow my link and download a half-written CSV file.

This is inelegant - the tool should do either remove the file first, or write out a dotfile and do an atomic rename once the download is complete.