1
0
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:
Carles Fernandez 2019-07-14 00:14:13 +02:00
parent fa549b09a2
commit f24ae66ca2
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -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;