global-functions: $RmFile: remove with find...

... as this is still racy.
This commit is contained in:
Christian Hesse 2026-05-07 15:57:03 +02:00
parent 875df5da76
commit 74d3fc2933

View file

@ -1234,7 +1234,7 @@
}
:onerror Err {
/file/remove $FileName;
/file/remove [ find where name=$FileName ];
} do={
$LogPrint error $0 ("Removing file '" . $FileName . "' failed: " . $Err);
:return false;