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

... as this is still racy.
This commit is contained in:
Christian Hesse 2026-05-07 15:56:20 +02:00
parent 3aaba1f408
commit 875df5da76

View file

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