diff --git a/src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java b/src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java index 301ace4..a198e87 100644 --- a/src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java +++ b/src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java @@ -323,8 +323,9 @@ public void render() throws IOException, InterruptedException { numberOfCompletedRenders = 0; try { - new File(outputRendersDirectoryName).mkdirs(); - new File(outputFloorplanDirectoryName).mkdirs(); + Files.createDirectories(Paths.get(outputRendersDirectoryName)); + Files.createDirectories(Paths.get(outputFloorplanDirectoryName)); + camera.setTime(renderDateTime); String yaml = generateBaseRender();