mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-10-29 22:26:22 +00:00
Remove temporary file generated at /tmp/file.xxxxxx
This commit is contained in:
parent
f27eb85af6
commit
949cdde2ea
@ -319,9 +319,13 @@ Kml_Printer::~Kml_Printer()
|
|||||||
{
|
{
|
||||||
std::cerr << e.what() << '\n';
|
std::cerr << e.what() << '\n';
|
||||||
}
|
}
|
||||||
|
errorlib::error_code ec;
|
||||||
|
if (!fs::remove(fs::path(tmp_file_str), ec))
|
||||||
|
{
|
||||||
|
LOG(INFO) << "Error deleting temporary file";
|
||||||
|
}
|
||||||
if (!positions_printed)
|
if (!positions_printed)
|
||||||
{
|
{
|
||||||
errorlib::error_code ec;
|
|
||||||
if (!fs::remove(fs::path(kml_filename), ec))
|
if (!fs::remove(fs::path(kml_filename), ec))
|
||||||
{
|
{
|
||||||
LOG(INFO) << "Error deleting temporary KML file";
|
LOG(INFO) << "Error deleting temporary KML file";
|
||||||
|
Loading…
Reference in New Issue
Block a user