mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-31 07:09:25 +02:00
global-functions: $RmFile: add debug output
This commit is contained in:
parent
727495d9c4
commit
7233dea5bb
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue