mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-05 21:50:09 +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;
|
errorlib::error_code ec;
|
||||||
os_test_file.close();
|
os_test_file.close();
|
||||||
|
|
||||||
fs::remove(test_file, ec);
|
if (!fs::remove(test_file, ec))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (static_cast<bool>(ec))
|
if (static_cast<bool>(ec))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user