Skip to content
Permalink
Browse files
creating actual parent in CommonsCsvWriter
  • Loading branch information
Romain Manni-Bucau committed Nov 21, 2015
1 parent e37f9e1 commit 7dc84fcb631e0919533bdf1317ed691480934c25
Showing 1 changed file with 1 addition and 1 deletion.
@@ -128,7 +128,7 @@ public void open(final Serializable checkpoint) throws Exception {
final CSVFormat format = newFormat();

final File file = new File(output);
if (!file.exists() && !file.getParentFile().mkdirs()) {
if (!file.getParentFile().exists() && !file.getParentFile().mkdirs()) {
throw new IllegalStateException("Cant create " + file);
}
this.transactionalWriter = new TransactionalWriter(file, encoding, checkpoint);

0 comments on commit 7dc84fc

Please sign in to comment.