MCPcopy Create free account
hub / github.com/WinMerge/winmerge / ClearTempfolder

Function ClearTempfolder

Src/TempFile.cpp:163–174  ·  view source on GitHub ↗

* @brief Remove the temp folder. * @param [in] pathName Folder to remove. * @return true if removal succeeds, `false` if fails. */

Source from the content-addressed store, hash-verified

161 * @return true if removal succeeds, `false` if fails.
162 */
163bool ClearTempfolder(const String &pathName)
164{
165 try
166 {
167 TFile(pathName).remove(true);
168 }
169 catch (...)
170 {
171 return false;
172 }
173 return true;
174}

Callers 3

DeleteMethod · 0.85
CleanupWMtempFunction · 0.85
ExitInstanceMethod · 0.85

Calls 2

TFileClass · 0.85
removeMethod · 0.45

Tested by

no test coverage detected