global-functions: $FetchHuge: handle missing file

This should not happen, as download was supposed to be
successful - it does. 🤪
This commit is contained in:
Christian Hesse 2025-12-22 09:14:26 +01:00
parent 222404535b
commit 0f91552c75

View file

@ -518,7 +518,11 @@
$RmDir $DirName;
: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 Return "";