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

Method removeFiles

Libraries/FileSystem/FileSystem.cpp:463–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463SC::Result SC::FileSystem::removeFiles(Span<const StringSpan> files)
464{
465 StringSpan encodedPath;
466 for (auto& path : files)
467 {
468 SC_TRY(convert(path, fileFormatBuffer1, fileTransportBuffer1, &encodedPath));
469 SC_TRY_FORMAT_ERRNO(path, FileSystem::Operations::removeFile(encodedPath));
470 }
471 return Result(true);
472}
473
474SC::Result SC::FileSystem::removeFileIfExists(StringSpan source)
475{

Callers 6

eventLoopWatchCloseMethod · 0.80
fileToFileMethod · 0.80
fileCompressRemoteMethod · 0.80
copyExistsFileMethod · 0.80
hardLinkMethod · 0.80
configureTestsFunction · 0.80

Calls 2

removeFileFunction · 0.85
ResultClass · 0.50

Tested by 5

eventLoopWatchCloseMethod · 0.64
fileToFileMethod · 0.64
fileCompressRemoteMethod · 0.64
copyExistsFileMethod · 0.64
hardLinkMethod · 0.64