MCPcopy Create free account
hub / github.com/comaps/comaps / WriteToFile

Function WriteToFile

libs/platform/http_client_curl.cpp:140–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool WriteToFile(std::string const & fileName, std::string const & data)
141{
142 std::ofstream ofs(fileName);
143 if (!ofs.is_open())
144 {
145 LOG(LERROR, ("Failed to write into a temporary file."));
146 return false;
147 }
148
149 ofs << data;
150 return true;
151}
152
153std::string Decompress(std::string const & compressed, std::string const & encoding)
154{

Callers 1

RunHttpRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected