MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / writeString

Function writeString

TactilityCore/Source/file/File.cpp:210–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210bool writeString(const std::string& filepath, const std::string& content) {
211 std::ofstream fileStream(filepath);
212
213 if (!fileStream.is_open()) {
214 return false;
215 }
216
217 fileStream << content;
218 fileStream.close();
219
220 return true;
221}
222
223static bool findOrCreateDirectoryInternal(std::string path, mode_t mode) {
224 auto lock = getLock(path)->asScopedLock();

Callers 2

writeDataMethod · 0.85
saveFileMethod · 0.85

Calls 1

closeMethod · 0.45

Tested by 1

writeDataMethod · 0.68