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

Function remove_file

util-win32.cpp:157–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void remove_file (const std::string& filename)
158{
159 if (!DeleteFileA(filename.c_str())) {
160 DWORD error = GetLastError();
161 if (error == ERROR_FILE_NOT_FOUND) {
162 return;
163 } else {
164 throw System_error("DeleteFileA", filename, error);
165 }
166 }
167}
168
169static void init_std_streams_platform ()
170{

Callers

nothing calls this directly

Calls 1

System_errorClass · 0.85

Tested by

no test coverage detected