| 209 | |
| 210 | |
| 211 | bool HubLink::saveFile(const std::string& path, const std::string& data) const { |
| 212 | // open with binary mode and truncation enabled |
| 213 | const std::string gzName = path; |
| 214 | std::ostream* out = FILEMGR.createDataOutStream(path, true, true); |
| 215 | if (out == NULL) { |
| 216 | return false; |
| 217 | } |
| 218 | *out << data; |
| 219 | out->flush(); |
| 220 | delete out; |
| 221 | return true; |
| 222 | } |
| 223 | |
| 224 | |
| 225 | //============================================================================// |
nothing calls this directly
no test coverage detected