У меня есть этот код:
std::error_code errc;
if (!std::filesystem::remove(entry.path(), errc)) {
//check if it failed cause the file does not exist
}
По сути, я пытаюсь преобразовать код C, который сделал:
if (remove(e.entry.name) != 0) {
if (errno == EEXIST)
...
}
Подробнее здесь: https://stackoverflow.com/questions/707 ... is-missing
Мобильная версия