We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f6e67 commit a051f5cCopy full SHA for a051f5c
1 file changed
src/main/java/org/scijava/nativelib/BaseJniExtractor.java
@@ -45,7 +45,6 @@
45
import java.io.InputStreamReader;
46
import java.io.OutputStream;
47
import java.net.URL;
48
-import java.nio.file.Files;
49
import java.util.Enumeration;
50
51
import org.slf4j.Logger;
@@ -122,7 +121,10 @@ protected static File getTempDir() throws IOException {
122
121
if (!tmpDir.isDirectory())
123
throw new IOException("Unable to create temporary directory " + tmpDir);
124
}
125
- return Files.createTempDirectory(tmpDir.toPath(), TMP_PREFIX).toFile();
+
+ File tempFile = File.createTempFile(TMP_PREFIX, "");
126
+ tempFile.delete();
127
+ return tempFile;
128
129
130
/**
0 commit comments