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

Method makeDirectoriesRecursive

Libraries/FileSystem/FileSystem.cpp:559–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559SC::Result SC::FileSystem::makeDirectoriesRecursive(Span<const StringSpan> directories)
560{
561 for (const auto& path : directories)
562 {
563 StringSpan encodedPath;
564 SC_TRY(convert(path, fileFormatBuffer1, fileTransportBuffer1, &encodedPath));
565 SC_TRY(FileSystem::Operations::makeDirectoryRecursive(encodedPath));
566 }
567 return Result(true);
568}
569
570SC::Result SC::FileSystem::makeDirectoriesIfNotExists(Span<const StringSpan> directories)
571{

Callers

nothing calls this directly

Calls 2

makeDirectoryRecursiveFunction · 0.85
ResultClass · 0.50

Tested by

no test coverage detected