We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b08c7 commit cfd0196Copy full SHA for cfd0196
etleap/src/main/java/us/hxbc/etleap/config/FileConfig.java
@@ -38,6 +38,12 @@ public class FileConfig {
38
39
void apply() {
40
logger.info("replacing {} with {}", path, updatePath);
41
+ try {
42
+ Files.createDirectories(path.getParent());
43
+ } catch (IOException e) {
44
+ logger.error("unable to create path", e);
45
+ }
46
+
47
try (InputStream is = updatePath.openStream()) {
48
try (OutputStream os = Files.newOutputStream(path,
49
StandardOpenOption.CREATE, StandardOpenOption.WRITE)) {
0 commit comments