global-functions: $RmFile: add debug output

This commit is contained in:
Christian Hesse 2025-01-21 19:24:38 +01:00
parent 727495d9c4
commit 7233dea5bb

View file

@ -1032,8 +1032,11 @@
:global LogPrint;
$LogPrint debug $0 ("Removing file: ". $FileName);
:local File [ /file/find where name=$FileName type=file ];
:if ([ :len $File ] = 0) do={
$LogPrint debug $0 ("... which does not exist.");
:return true;
}