| 519 | } |
| 520 | |
| 521 | SC::Result SC::FileSystem::copyDirectories(Span<const CopyOperation> sourceDestination) |
| 522 | { |
| 523 | if (currentDirectory.view().isEmpty()) |
| 524 | return Result(false); |
| 525 | for (const CopyOperation& op : sourceDestination) |
| 526 | { |
| 527 | StringSpan encodedPath1; |
| 528 | StringSpan encodedPath2; |
| 529 | SC_TRY(convert(op.source, fileFormatBuffer1, fileTransportBuffer1, &encodedPath1)); |
| 530 | SC_TRY(convert(op.destination, fileFormatBuffer2, fileTransportBuffer2, &encodedPath2)); |
| 531 | SC_TRY_FORMAT_NATIVE(op.source, |
| 532 | FileSystem::Operations::copyDirectory(encodedPath1, encodedPath2, op.copyFlags)); |
| 533 | } |
| 534 | return Result(true); |
| 535 | } |
| 536 | |
| 537 | SC::Result SC::FileSystem::removeEmptyDirectories(Span<const StringSpan> directories) |
| 538 | { |
nothing calls this directly
no test coverage detected