Skip to content

Commit

Permalink
Create parent directory before writing patch file
Browse files Browse the repository at this point in the history
We may choose to place the generated `error-prone.patch` file in a
subdirectory of the base which might not already exist. For example, we
may wish to place it in target/patches instead of the base directory.
  • Loading branch information
AlexandreCarlton committed Jul 14, 2018
1 parent 017371c commit 615f093
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ private static void writePatchFile(
throw new IOError(e);
}
}
Files.createDirectories(patchFilePatch.getParent());
Files.write(patchFilePatch, patchFile.getBytes(UTF_8), APPEND, CREATE);
}
}
Expand Down

0 comments on commit 615f093

Please sign in to comment.