Top-Q / difido-reports

This project aims to provide a generic implementation for HTML test reports.
http://top-q.github.io/difido-reports
Apache License 2.0
47 stars 31 forks source link

Protected the *meta.json* file by writing to temp file any update and move it afterwards. #106

Closed itaiag closed 8 years ago

itaiag commented 8 years ago

Corruption in the meta.json file affects the server in a severe way and we should protect it as much as we can.

For now, we will write the file to a temporary file and only if the write was successful, we will move the temp file to be the meta.json file.