diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/EnigmaProject.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/EnigmaProject.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/cuchaz/enigma/EnigmaProject.java b/src/main/java/cuchaz/enigma/EnigmaProject.java index 82fc0bd..dd1f9fa 100644 --- a/src/main/java/cuchaz/enigma/EnigmaProject.java +++ b/src/main/java/cuchaz/enigma/EnigmaProject.java | |||
| @@ -273,6 +273,7 @@ public class EnigmaProject { | |||
| 273 | } | 273 | } |
| 274 | 274 | ||
| 275 | void writeTo(Path path) throws IOException { | 275 | void writeTo(Path path) throws IOException { |
| 276 | Files.createDirectories(path.getParent()); | ||
| 276 | try (BufferedWriter writer = Files.newBufferedWriter(path)) { | 277 | try (BufferedWriter writer = Files.newBufferedWriter(path)) { |
| 277 | writer.write(source); | 278 | writer.write(source); |
| 278 | } | 279 | } |