From d718b0b34eda84744778fa12a01d5be5f03753d3 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Tue, 13 Aug 2013 19:15:06 +0200 Subject: Dont write directly to files but rather write and copy a tmp file --- src/filesys.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/filesys.h') diff --git a/src/filesys.h b/src/filesys.h index d0bf400c7..1b3659afe 100644 --- a/src/filesys.h +++ b/src/filesys.h @@ -98,6 +98,8 @@ std::string RemoveLastPathComponent(std::string path, // this does not resolve symlinks and check for existence of directories. std::string RemoveRelativePathComponents(std::string path); +bool safeWriteToFile(const std::string &path, const std::string &content); + }//fs #endif -- cgit v1.2.3