Implement atomicWriteJsonFile.
Writes to a temp file and then replaces (delete+rename) the target file, so that it always contains complete and valid contents.
1 parent 9f547b8 commit 0740341d8725cc394d1b7a8eacec4af29b55d386
@Sönke Ludwig Sönke Ludwig authored on 22 Sep 2015
Showing 1 changed file
View
source/dub/internal/utils.d