From 3be57a43ed15c2a4326b8d70a3c4dafbd0ca84fe Mon Sep 17 00:00:00 2001 From: mishaschwartz Date: Mon, 9 Jan 2023 09:41:38 -0500 Subject: [PATCH] server: fix bug where paths were not splatted (#426) --- 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)