Skip to content
Permalink
Browse files

Automaticly create cache directory if it does not exists

  • Loading branch information...
ferrybig committed Mar 14, 2019
1 parent 710a129 commit 8df15146d2985f161171ddb62166b00495b916ae
@@ -54,6 +54,7 @@ public RenderCache(@Nonnull Path normalFile, @Nonnull Path backupFile) throws IO
Files.delete(backupFile);
}
this.entries = new ConcurrentHashMap<>(entries);
Files.createDirectories(normalFile.getParent());
this.writer = Files.newBufferedWriter(normalFile, StandardCharsets.UTF_8, StandardOpenOption.APPEND, StandardOpenOption.WRITE, StandardOpenOption.CREATE);
}

0 comments on commit 8df1514

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.