Skip to content

Commit

Permalink
Fix output dir creation in ConcatFileTask (elastic#91568)
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby committed Nov 14, 2022
1 parent ef93cbb commit fbb2e0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void setAdditionalLines(List<String> additionalLines) {
@TaskAction
public void concatFiles() throws IOException {
if (getHeaderLine() != null) {
getTarget().mkdirs();
getTarget().getParentFile().mkdirs();
Files.write(getTarget().toPath(), (getHeaderLine() + '\n').getBytes(StandardCharsets.UTF_8));
}

Expand Down

0 comments on commit fbb2e0d

Please sign in to comment.