mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-28 18:04:51 +00:00
Always check fs::remove output
This commit is contained in:
parent
fa549b09a2
commit
f24ae66ca2
@ -83,7 +83,10 @@ bool gnss_sdr_create_directory(const std::string& foldername)
|
||||
errorlib::error_code ec;
|
||||
os_test_file.close();
|
||||
|
||||
fs::remove(test_file, ec);
|
||||
if (!fs::remove(test_file, ec))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (static_cast<bool>(ec))
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user