Skip to content

Commit

Permalink
Create local folder if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
HttpMarco committed Jan 2, 2025
1 parent 83fe074 commit e325b24
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public final class PlatformProviderImpl implements PlatformProvider {

@SneakyThrows
public PlatformProviderImpl() {

Files.createDirectories(PLATFORM_MAP_FILE.getParent());

if(!Files.exists(PLATFORM_MAP_FILE)) {
Files.writeString(PLATFORM_MAP_FILE, PLATOFRM_GSON.toJson(this.originalPlatformMap()));
log.info("Downloading original platform map...");
Expand Down

0 comments on commit e325b24

Please sign in to comment.