diff options
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/global-functions b/global-functions index 75a7dda..71d711b 100644 --- a/global-functions +++ b/global-functions @@ -536,6 +536,11 @@ :return true; } + :if ([ :len [ /file/find where name=$Dir ] ] = 1) do={ + $LogPrintExit2 warning $0 ("The path '" . $Dir . "' exists, but is not a directory.") false; + :return false; + } + :local Return true; :local Name ($Dir . "-" . [ $GetRandom20CharAlNum 6 ]); :do { |