global-functions: work around restrictions in new file handling

This commit is contained in:
Christian Hesse 2025-05-30 20:42:25 +02:00
parent 1d4f28edf6
commit e89ae83bf1

View file

@ -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;
}