MCPcopy Create free account
hub / github.com/bytedance/bolt / openFileForWrite

Method openFileForWrite

bolt/common/file/FileSystems.cpp:172–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 }
171
172 std::unique_ptr<WriteFile> openFileForWrite(
173 std::string_view path,
174 const FileOptions& options) override {
175 return std::make_unique<LocalWriteFile>(
176 extractPath(path),
177 options.shouldCreateParentDirectories,
178 options.shouldThrowOnFileAlreadyExists);
179 }
180#ifdef IO_URING_SUPPORTED
181 std::unique_ptr<ReadFile> openAsyncFileForRead(
182 std::string_view path,

Callers 11

SpillWriteFileMethod · 0.45
writeMethod · 0.45
writeSummaryMethod · 0.45
TEST_FFunction · 0.45
createStreamMethod · 0.45
TESTFunction · 0.45
createStreamMethod · 0.45
copyFilesMethod · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 5

TEST_FFunction · 0.36
createStreamMethod · 0.36
TESTFunction · 0.36
createStreamMethod · 0.36
TEST_FFunction · 0.36