Skip to content

Commit

Permalink
ensure map dir exists, I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 24, 2024
1 parent 2e46f21 commit 99a2ac4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/helpers/modtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ export function testMod(sendToUI: SendToUI, modData: any) {
fs.ensureDirSync(`${baseUrl}/resources/rair/content`);

// clean out old maps
fs.ensureDirSync(`${baseUrl}/resources/rair/content/maps`);
fs.rmdirSync(`${baseUrl}/resources/rair/content/maps`, { recursive: true });
fs.ensureDirSync(`${baseUrl}/resources/rair/content/maps`);
fs.ensureDirSync(`${baseUrl}/resources/rair/content/_output/maps`);
fs.rmdirSync(`${baseUrl}/resources/rair/content/_output/maps`, {
recursive: true,
});
fs.ensureDirSync(`${baseUrl}/resources/rair/content/_output/maps`);

// dump all mod data
fs.ensureDirSync(`${baseUrl}/resources/rair/content/mods`);
Expand Down

0 comments on commit 99a2ac4

Please sign in to comment.