1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

global-functions: $MkDir: do not act without directory

This commit is contained in:
Christian Hesse
2022-02-10 11:05:21 +01:00
parent a50d9d30e3
commit 7b48b25c27

View File

@ -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;
}