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

Method makeDirectory

Libraries/FileSystem/FileSystem.cpp:934–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934SC::Result SC::FileSystem::Operations::makeDirectory(StringSpan path)
935{
936 SC_TRY_MSG(Internal::validatePath(path), "makeDirectory: Invalid path");
937 SC_TRY_WIN32(::CreateDirectoryW(path.getNullTerminatedNative(), nullptr),
938 "makeDirectory: Failed to create directory");
939 return Result(true);
940}
941
942SC::Result SC::FileSystem::Operations::makeDirectoryRecursive(StringSpan path)
943{

Callers 14

eventLoopWatchStopMethod · 0.80
walkNotEnoughMethod · 0.80
testOpenMethod · 0.80
makeRemoveIsDirectoryMethod · 0.80
renameDirectoryMethod · 0.80
symbolicLinkMethod · 0.80
hardLinkMethod · 0.80
moveDirectoryMethod · 0.80

Calls 1

ResultClass · 0.50

Tested by 13

eventLoopWatchStopMethod · 0.64
walkNotEnoughMethod · 0.64
testOpenMethod · 0.64
makeRemoveIsDirectoryMethod · 0.64
renameDirectoryMethod · 0.64
symbolicLinkMethod · 0.64
hardLinkMethod · 0.64
moveDirectoryMethod · 0.64