in fbpcf/io/LocalFileManager.cpp [41:52]
void LocalFileManager::write(
const std::string& fileName,
const std::string& data) {
std::filesystem::path filePath{fileName};
std::filesystem::create_directories(filePath.parent_path());
std::ofstream os{fileName};
if (!os.is_open()) {
throw PcfException{folly::sformat("Failed to open file {}", fileName)};
}
os << data;
}