global-functions: $FetchHuge: use $RmDir

This commit is contained in:
Christian Hesse 2025-01-21 18:38:09 +01:00
parent d19b90df08
commit 4760515add

View file

@ -457,6 +457,7 @@
:global IfThenElse; :global IfThenElse;
:global LogPrint; :global LogPrint;
:global MkDir; :global MkDir;
:global RmDir;
:global RmFile; :global RmFile;
:global WaitForFile; :global WaitForFile;
@ -477,7 +478,7 @@
$RmFile $FileName; $RmFile $FileName;
} }
$LogPrint debug $0 ("Failed downloading from: " . $Url); $LogPrint debug $0 ("Failed downloading from: " . $Url);
/file/remove $DirName; $RmDir $DirName;
:return false; :return false;
} }
$WaitForFile $FileName; $WaitForFile $FileName;
@ -493,7 +494,7 @@
:delay 100ms; :delay 100ms;
} }
} }
/file/remove $DirName; $RmDir $DirName;
:return $Return; :return $Return;
} }