From dc148065dc62178efe6729ae018f83284b1770b5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 20 Jan 2021 14:03:31 +0100 Subject: global-functions: $MkDir: clean path --- global-functions | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3-54-g00ecf