Skip to content

Commit

Permalink
determining temporary workdir correctly when using relative path for …
Browse files Browse the repository at this point in the history
…output corpus
  • Loading branch information
Marc Zimmermann committed Oct 6, 2021
1 parent ff19dca commit 67bc3bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public WriteToSerializedCorpus(File corpusOutputDir, int threads, Optional<Funct
FileUtils.deleteDirectory(corpusOutputDir);
}

workerTmpDir = new File(corpusOutputDir.getParentFile() + File.separator + corpusOutputDir.getName() + "_tmp");
workerTmpDir = new File(corpusOutputDir.getAbsoluteFile().getParentFile() + File.separator + corpusOutputDir.getName() + "_tmp");

// every parallel instance of the GATE pipeline has its own output corpus (for performance reasons)
corpusDirs = IntStream.range(0, threads).
Expand Down

0 comments on commit 67bc3bc

Please sign in to comment.