MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Write

Method Write

lib/base/atomic-file.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace icinga;
18
19void AtomicFile::Write(String path, int mode, const String& content)
20{
21 AtomicFile af (path, mode);
22 af << content;
23 af.Commit();
24}
25
26AtomicFile::AtomicFile(String path, int mode) : m_Path(std::move(path))
27{

Callers

nothing calls this directly

Calls 1

CommitMethod · 0.45

Tested by

no test coverage detected