| 870 | } |
| 871 | |
| 872 | bool writeFile(const std::string &filename, const std::string &s) |
| 873 | { |
| 874 | std::string path = extractFilePath(filename); |
| 875 | createDirectory(path); |
| 876 | std::ofstream f(filename.c_str()); |
| 877 | if (!f) return false; |
| 878 | f << s; |
| 879 | return true; |
| 880 | } |
| 881 | |
| 882 | bool writeFile(const std::string &filename, const std::vector<std::string> &vs) |
| 883 | { |
nothing calls this directly
no test coverage detected