From e89ae83bf111b39ab4fb04a4798e61b201581b76 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 30 May 2025 20:42:25 +0200 Subject: [PATCH] global-functions: work around restrictions in new file handling --- global-functions.rsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/global-functions.rsc b/global-functions.rsc index a630b6bf..09e25c43 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -941,7 +941,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; }