mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-01 05:34:28 +02:00
global-functions: $MkDir: do not act without directory
This commit is contained in:
parent
a50d9d30e3
commit
7b48b25c27
1 changed files with 4 additions and 0 deletions
|
@ -510,6 +510,10 @@
|
|||
|
||||
:set Dir [ $CleanFilePath $Dir ];
|
||||
|
||||
:if ($Dir = "") do={
|
||||
:return true;
|
||||
}
|
||||
|
||||
:if ([ :len [ / file find where name=$Dir type="directory" ] ] = 1) do={
|
||||
:return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue