mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[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:
parent
0c2edcfe47
commit
20d12f5b53
@ -82,7 +82,7 @@ public:
|
||||
if ( show_fallout_ ){
|
||||
appendFile(*logStream_, file, rank);
|
||||
}else{
|
||||
fs::remove(filename);
|
||||
fs::remove(file);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -91,9 +91,8 @@ public:
|
||||
{
|
||||
if ( show_fallout_ ){
|
||||
appendFile(*debugStream_, file, rank);
|
||||
}else
|
||||
{
|
||||
fs::remove(filename);
|
||||
}else{
|
||||
fs::remove(file);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user