mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-01 13:44:26 +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 ];
|
:set Dir [ $CleanFilePath $Dir ];
|
||||||
|
|
||||||
|
:if ($Dir = "") do={
|
||||||
|
:return true;
|
||||||
|
}
|
||||||
|
|
||||||
:if ([ :len [ / file find where name=$Dir type="directory" ] ] = 1) do={
|
:if ([ :len [ / file find where name=$Dir type="directory" ] ] = 1) do={
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue