From bb60da8cb26c1c3156632638a733ccd603ebe86c Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:52:11 +0300 Subject: [PATCH] create parent path for unzip --- loader/src/utils/file.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/src/utils/file.cpp b/loader/src/utils/file.cpp index c0d76d1f..1b5764ed 100644 --- a/loader/src/utils/file.cpp +++ b/loader/src/utils/file.cpp @@ -306,6 +306,7 @@ public: mz_zip_entry_close(m_handle); + GEODE_UNWRAP(file::createDirectoryAll((dir / name).parent_path())); GEODE_UNWRAP(file::writeBinary(dir / name, res).expect("Unable to write to {}: {error}", dir / name)); return Ok();