global-functions: $RmDir: ignore "no such item"...

... as this is still racy.
This commit is contained in:
Christian Hesse 2026-05-07 15:53:18 +02:00
parent 74d3fc2933
commit 57385b5934

View file

@ -1207,8 +1207,10 @@
:onerror Err {
/file/remove [ find where name=$DirName ];
} do={
$LogPrint error $0 ("Removing directory '" . $DirName . "' failed: " . $Err);
:return false;
:if (!($Err ~ "no such item")) do={
$LogPrint error $0 ("Removing directory '" . $DirName . "' failed: " . $Err);
:return false;
}
}
:return true;
}