diff --git a/src/main/events/cloud-save/download-game-artifact.ts b/src/main/events/cloud-save/download-game-artifact.ts index adef7ce4..f6899e6f 100644 --- a/src/main/events/cloud-save/download-game-artifact.ts +++ b/src/main/events/cloud-save/download-game-artifact.ts @@ -94,6 +94,8 @@ const downloadGameArtifact = async ( throw err; }); + fs.mkdirSync(backupPath, { recursive: true }); + writer.on("close", () => { tar .x({