aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 7fa41ea..de4b64e 100644
--- a/global-functions
+++ b/global-functions
@@ -480,8 +480,11 @@
:set MkDir do={
:local Dir [ :tostr $1 ];
+ :global CleanFilePath;
:global WaitForFile;
+ :set Dir [ $CleanFilePath $Dir ];
+
:if ([ :len [ / file find where name=$Dir type="directory" ] ] = 0) do={
:local WwwVal [ / ip service get www ];
/ ip service set www address=127.0.0.1/32 disabled=no port=80;