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

(cherry picked from commit 7b48b25c27)
This commit is contained in:
Christian Hesse 2022-02-10 11:05:21 +01:00
parent 943b60bfe3
commit 3dd3452303

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