From b2d078f0e89153349c92631f054d3e91401d593b Mon Sep 17 00:00:00 2001 From: Graham Fenner Date: Sat, 15 Apr 2023 21:52:06 +0100 Subject: [PATCH] create dir if not exist curl --- http_listener.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_listener.cmd b/http_listener.cmd index 44e04e8..93d6784 100755 --- a/http_listener.cmd +++ b/http_listener.cmd @@ -44,7 +44,7 @@ for /f "usebackq tokens=*" %%a in ("%afile%") do ( set "http_file=!http_file:.bsp=.zip!" SET errorlevel= echo [http_listener.cmd] NEUTRAL: Trying to download "%http_server%!http_file!" to "user/maps/!http_file!" -curl -gk -f -sS -o "user/maps/!http_file!" "%http_server%!http_file!" +curl -gk -f -sS -o "user/maps/!http_file!" --create-dirs "%http_server%!http_file!" IF "!errorlevel!"=="0" ( echo [http_listener.cmd] SUCCESS: "%http_file%" downloaded to "%http_server%!http_file!". powershell -command "Expand-Archive -LiteralPath './user/maps/!http_file!' -DestinationPath ./user -Force"