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