| 118 | } |
| 119 | |
| 120 | bool filesystem::copy(const std::string &from, const std::string &to) |
| 121 | { |
| 122 | std::ifstream input(from.c_str(), std::ios::in | std::ios::binary); |
| 123 | if (!input.is_open()) { |
| 124 | return false; |
| 125 | } |
| 126 | std::ofstream output(to.c_str(), std::ios::out | std::ios::binary); |
| 127 | output << input.rdbuf(); |
| 128 | return true; |
| 129 | } |
| 130 | |
| 131 | bool filesystem::create_dir(const std::string &path) |
| 132 | { |
nothing calls this directly
no outgoing calls
no test coverage detected