| 72 | } |
| 73 | |
| 74 | bool 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 | |
| 88 | std::vector<uint8_t> StdFileSystem::read_chunk(const Path &path, size_t offset, size_t count) |
| 89 | { |
no outgoing calls
no test coverage detected