Custom OBSW update path #582
@ -1891,6 +1891,7 @@ ReturnValue_t CoreController::executeSwUpdate(SwUpdateSources sourceDir, const u
|
||||
size_t size) {
|
||||
using namespace std;
|
||||
using namespace std::filesystem;
|
||||
error_code e;
|
||||
// At the very least, chip and copy ID need to be included in the command
|
||||
if (size < 2) {
|
||||
return HasActionsIF::INVALID_PARAMETERS;
|
||||
@ -2020,8 +2021,8 @@ ReturnValue_t CoreController::executeSwUpdate(SwUpdateSources sourceDir, const u
|
||||
cmd.clear();
|
||||
|
||||
// Remove the extracted files to keep directories clean.
|
||||
|
||||
std::filesystem::remove(strippedImagePath);
|
||||
std::filesystem::remove(obswVersionFilePath);
|
||||
std::filesystem::remove(strippedImagePath, e);
|
||||
meggert
commented
use use `bool remove( const std::filesystem::path& p, std::error_code& ec ) noexcept;` instead
|
||||
std::filesystem::remove(obswVersionFilePath, e);
|
||||
|
||||
// TODO: This takes a long time and will block the core controller.. Maybe use command executor?
|
||||
// For now dont care..
|
||||
|
Loading…
x
Reference in New Issue
Block a user
use
bool remove( const std::filesystem::path& p, std::error_code& ec ) noexcept;
instead