MCPcopy Create free account
hub / github.com/BlueMatthew/WechatExporter / deleteFile

Function deleteFile

WechatExporter/core/FileSystem.cpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool deleteFile(const std::string& path)
142{
143#ifdef _WIN32
144 CW2T pszT(CA2W(path.c_str(), CP_UTF8));
145 return ::DeleteFile((LPCTSTR)pszT) == TRUE;
146#else
147 return 0 == std::remove(path.c_str());
148#endif
149}
150
151bool deleteDirectory(const std::string& path)
152{

Callers 3

PdfConverterImpl.hFile · 0.85
downloadFileMethod · 0.85
downloadFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected