MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / create_directory

Method create_directory

components/filesystem/src/std_filesystem.cpp:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool StdFileSystem::create_directory(const Path &path)
75{
76 std::error_code ec;
77
78 std::filesystem::create_directories(path, ec);
79
80 if (ec)
81 {
82 throw std::runtime_error("Failed to create directory at path: " + path.string());
83 }
84
85 return !ec;
86}
87
88std::vector<uint8_t> StdFileSystem::read_chunk(const Path &path, size_t offset, size_t count)
89{

Callers 2

create_directoryFunction · 0.80
create_pathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected