MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / deleteFile

Function deleteFile

core/filetools.cpp:86–98  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

84 }
85//---------------------------------------------------------------------------
86 bool deleteFile(const std::string &name)
87 {
88 if (!fileExists(name)) return false;
89 try
90 {
91 remove(fs::path(uniformSlashes(name)));
92 }
93 catch (...)
94 {
95 return false;
96 }
97 return true;
98 }
99
100 std::string uniformSlashes(const std::string &path)
101 {

Callers 2

copyFileFunction · 0.85
processMethod · 0.85

Calls 2

fileExistsFunction · 0.85
uniformSlashesFunction · 0.85

Tested by

no test coverage detected