diff options
author | Christian Hesse <mail@eworm.de> | 2022-02-10 11:05:21 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-02-10 11:05:21 +0100 |
commit | 7b48b25c271111570d27708ceac437e24f05e6fe (patch) | |
tree | 8453d0fc083fa1ec686844b194a8228bc05428da /global-functions | |
parent | a50d9d30e3fbf6b4236f99cb40df656206492f8f (diff) |
global-functions: $MkDir: do not act without directory
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |