diff --git a/global-functions.rsc b/global-functions.rsc index 759b2744..89fff7c3 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -917,7 +917,9 @@ $LogPrint debug $0 ("Making directory: " . $Path); - :if ([ :len [ /file/find where name=$Path type="directory" ] ] = 1) do={ + :local PathVal; + :do { :set PathVal [ /file/get $Path ]; } on-error={ } + :if ($PathVal->"type"="directory") do={ $LogPrint debug $0 ("... which already exists."); :return true; }