| 461 | } |
| 462 | |
| 463 | SC::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 | |
| 474 | SC::Result SC::FileSystem::removeFileIfExists(StringSpan source) |
| 475 | { |