From 7b48b25c271111570d27708ceac437e24f05e6fe Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 10 Feb 2022 11:05:21 +0100 Subject: global-functions: $MkDir: do not act without directory --- global-functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'global-functions') diff --git a/global-functions b/global-functions index 4d1d1a1..acf3546 100644 --- a/global-functions +++ b/global-functions @@ -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; } -- cgit v1.2.3-70-g09d2