global-functions: $RmDir: add debug output

This commit is contained in:
Christian Hesse 2025-01-21 19:24:05 +01:00
parent 7233dea5bb
commit 49d9fb1ffd

View file

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