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

Method removeEmptyDirectories

Libraries/FileSystem/FileSystem.cpp:537–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537SC::Result SC::FileSystem::removeEmptyDirectories(Span<const StringSpan> directories)
538{
539 StringSpan encodedPath;
540 for (StringSpan path : directories)
541 {
542 SC_TRY(convert(path, fileFormatBuffer1, fileTransportBuffer1, &encodedPath));
543 SC_TRY_FORMAT_ERRNO(path, FileSystem::Operations::removeEmptyDirectory(encodedPath));
544 }
545 return Result(true);
546}
547
548SC::Result SC::FileSystem::makeDirectories(Span<const StringSpan> directories)
549{

Callers 2

eventLoopSubdirectoryMethod · 0.80
makeRemoveIsDirectoryMethod · 0.80

Calls 2

removeEmptyDirectoryFunction · 0.85
ResultClass · 0.50

Tested by 2

eventLoopSubdirectoryMethod · 0.64
makeRemoveIsDirectoryMethod · 0.64