mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 09:59:28 +00: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