MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / deleteFile

Method deleteFile

src/Base/FileInfo.cpp:460–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460bool FileInfo::deleteFile() const
461{
462 try {
463 fs::path path = stringToPath(FileName);
464 return fs::remove(path);
465 }
466 catch (const fs::filesystem_error& e) {
467 std::clog << e.what() << '\n';
468 return false;
469 }
470}
471
472bool FileInfo::renameFile(const char* NewName)
473{

Callers 15

getTempFileNameMethod · 0.45
importLinksMethod · 0.45
readInputFileMethod · 0.45
replaceProjectFileMethod · 0.45
applyStandardMethod · 0.45
applyTimeStampMethod · 0.45
~PropertyFileIncludedMethod · 0.45
setValueMethod · 0.45
PasteMethod · 0.45
closeEventMethod · 0.45
tryRunEventLoopFunction · 0.45
activatedMethod · 0.45

Calls 2

removeFunction · 0.70
whatMethod · 0.45

Tested by

no test coverage detected