mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-05-10 13:52:13 +00:00
global-functions: $RmFile: ignore "no such item"...
... as this is still racy.
This commit is contained in:
parent
57385b5934
commit
73f15a2df0
1 changed files with 4 additions and 2 deletions
|
|
@ -1238,8 +1238,10 @@
|
|||
:onerror Err {
|
||||
/file/remove [ find where name=$FileName ];
|
||||
} do={
|
||||
$LogPrint error $0 ("Removing file '" . $FileName . "' failed: " . $Err);
|
||||
:return false;
|
||||
:if (!($Err ~ "no such item")) do={
|
||||
$LogPrint error $0 ("Removing file '" . $FileName . "' failed: " . $Err);
|
||||
:return false;
|
||||
}
|
||||
}
|
||||
:return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue