MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / removeFileIfExists

Method removeFileIfExists

Libraries/FileSystem/FileSystem.cpp:474–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474SC::Result SC::FileSystem::removeFileIfExists(StringSpan source)
475{
476 if (existsAndIsFile(source))
477 return removeFiles(Span<const StringSpan>{source});
478 return Result(true);
479}
480
481SC::Result SC::FileSystem::removeLinkIfExists(StringSpan source)
482{

Callers 3

threadRunnerMethod · 0.80
fileToFileMethod · 0.80
fileCompressRemoteMethod · 0.80

Calls 1

ResultClass · 0.50

Tested by 3

threadRunnerMethod · 0.64
fileToFileMethod · 0.64
fileCompressRemoteMethod · 0.64