MCPcopy Create free account
hub / github.com/AGWA/git-crypt / touch_file

Function touch_file

util-unix.cpp:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void touch_file (const std::string& filename)
151{
152 if (utimes(filename.c_str(), nullptr) == -1 && errno != ENOENT) {
153 throw System_error("utimes", filename, errno);
154 }
155}
156
157void remove_file (const std::string& filename)
158{

Callers 3

unlockFunction · 0.70
lockFunction · 0.70
statusFunction · 0.70

Calls 1

System_errorClass · 0.85

Tested by

no test coverage detected