MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / beginFile

Method beginFile

switch/source/transfer.cpp:233–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 return true;
232 }
233 bool beginFile(const std::string& relPath, uint32_t) override
234 {
235 ensureDirectoryPath(destRoot, relPath);
236 output = fopen((destRoot + relPath).c_str(), "wb");
237 return output != nullptr;
238 }
239 bool writeFile(const void* data, size_t n) override
240 {
241 fwrite(data, 1, n, output);

Callers

nothing calls this directly

Calls 1

ensureDirectoryPathFunction · 0.70

Tested by

no test coverage detected