You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not use prefix in createTempFile, and release 0.2.3
Embulk v0.9.20 started to use java.nio.file.Files.createTempFile,
instead of java.io.File.createTempFile, to create a temp file.
But, these two APIs had a difference when "/" is included in prefix.
File.createTempFile("fooA/barA", ".tmp", new File("/tmp"));
==> Creates /tmp/barA9003569178568216717.tmp
Files.createTempFile(Paths.get("/tmp"), "fooB/barB", ".tmp");
==> Throws IllegalArgumentException
The prefix is not required to create a temp file in this plugin,
actually. Just removing the prefix is the simplest fix for this.
0 commit comments