| 139 | } |
| 140 | |
| 141 | bool Shell::RemoveFile(const std::filesystem::path &path) { |
| 142 | boost::system::error_code ec{}; |
| 143 | boost::filesystem::remove(boost::filesystem::path(path), ec); |
| 144 | return !ec.failed(); |
| 145 | /*#ifdef WINDOWS |
| 146 | return RunCommand(fmt::format("del \"{}\"", path.string())).exitCode == 0; |
| 147 | #else |
| 148 | return RunCommand(fmt::format("rm \"{}\"", path.string())).exitCode == 0; |
| 149 | #endif*/ |
| 150 | } |
| 151 | |
| 152 | std::vector<uint8_t> Shell::ReadBytes(const std::filesystem::path &path) { |
| 153 | std::ifstream file{}; |
nothing calls this directly
no outgoing calls
no test coverage detected