[bugfix] Use file not filename to remove files not in current directory.

Passing just the filename to remove only will remove files in the
current directory. When --output-dir the files would not have been
removed.
This commit is contained in:
Markus Blatt 2019-01-16 11:57:28 +01:00
parent 0c2edcfe47
commit 20d12f5b53

View File

@ -82,7 +82,7 @@ public:
if ( show_fallout_ ){ if ( show_fallout_ ){
appendFile(*logStream_, file, rank); appendFile(*logStream_, file, rank);
}else{ }else{
fs::remove(filename); fs::remove(file);
} }
} }
else else
@ -91,9 +91,8 @@ public:
{ {
if ( show_fallout_ ){ if ( show_fallout_ ){
appendFile(*debugStream_, file, rank); appendFile(*debugStream_, file, rank);
}else }else{
{ fs::remove(file);
fs::remove(filename);
} }
} }
else else