From 3dd34523037ce356092eee59bc35acaa8d7020ed 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 (cherry picked from commit 7b48b25c271111570d27708ceac437e24f05e6fe) --- global-functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/global-functions b/global-functions index 0a0b1ff..9721b8b 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-54-g00ecf