mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-23 02:09:30 +00:00
global-functions: $FetchHuge: handle missing file
This should not happen, as download was supposed to be
successful - it does. 🤪
This commit is contained in:
parent
222404535b
commit
0f91552c75
1 changed files with 5 additions and 1 deletions
|
|
@ -518,7 +518,11 @@
|
||||||
$RmDir $DirName;
|
$RmDir $DirName;
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
$WaitForFile $FileName;
|
|
||||||
|
:if ([ $WaitForFile $FileName 5s ] = false) do={
|
||||||
|
$LogPrint debug $0 ("The file downloaded from from " . $Url . " did not show up.");
|
||||||
|
:return false;
|
||||||
|
}
|
||||||
|
|
||||||
:local FileSize [ /file/get $FileName size ];
|
:local FileSize [ /file/get $FileName size ];
|
||||||
:local Return "";
|
:local Return "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue