From 4322aa39df30a4f8e1a8c8ebcdd5e7dca3f4d044 Mon Sep 17 00:00:00 2001 From: mishaschwartz Date: Mon, 9 Jan 2023 09:27:11 -0500 Subject: [PATCH] server: fix bug where paths were not splatted --- server/autotest_server/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/autotest_server/utils.py b/server/autotest_server/utils.py index 1bebc46e..da2dcdef 100644 --- a/server/autotest_server/utils.py +++ b/server/autotest_server/utils.py @@ -79,7 +79,7 @@ def extract_zip_stream(zip_byte_stream: bytes, destination: str) -> None: with zipfile.ZipFile(BytesIO(zip_byte_stream)) as zf: for fname in zf.namelist(): *dpaths, bname = fname.split(os.sep) - dest = os.path.join(destination, dpaths) + dest = os.path.join(destination, *dpaths) filename = os.path.join(dest, bname) if filename.endswith("/"): os.makedirs(filename, exist_ok=True)