Skip to content

Commit

Permalink
Raise exception if can't create directories
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuelzon committed Dec 5, 2024
1 parent cd7299a commit e0fbff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e0fbff5

Please sign in to comment.