mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Dont write directly to files but rather write and copy a tmp file
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user