MCPcopy Create free account
hub / github.com/ByConity/ByConity / writeFile

Method writeFile

src/Disks/DiskLocal.cpp:277–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277std::unique_ptr<WriteBufferFromFileBase>
278DiskLocal::writeFile(const String & path, const WriteSettings& settings)
279{
280 int flags = (settings.mode == WriteMode::Append) ? (O_APPEND | O_CREAT | O_WRONLY) : -1;
281 return std::make_unique<WriteBufferFromFile>(fs::path(disk_path) / path, settings.buffer_size, flags);
282}
283
284void DiskLocal::removeFile(const String & path)
285{

Callers 6

finalizeMutatedPartMethod · 0.45
saveMethod · 0.45
copyFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected