diff --git a/global-functions.rsc b/global-functions.rsc index d2cc2abc..4ad3ac24 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -895,6 +895,7 @@ :local Path [ :tostr $1 ]; :global CleanFilePath; + :global FileGet; :global LogPrint; :global RmDir; :global WaitForFile; @@ -932,7 +933,8 @@ $LogPrint debug $0 ("Making directory: " . $Path); - :if ([ :len [ /file/find where name=$Path type="directory" ] ] = 1) do={ + :local PathVal [ $FileGet $Path ]; + :if ($PathVal->"type" = "directory") do={ $LogPrint debug $0 ("... which already exists."); :return true; }