MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / RemoveFile

Method RemoveFile

common/src/shell/Shell.cpp:141–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool 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
152std::vector<uint8_t> Shell::ReadBytes(const std::filesystem::path &path) {
153 std::ifstream file{};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected