mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 16:04:10 -08:00
Fix bug in File.createTempFile
This commit is contained in:
parent
7e422c081e
commit
aa48a097d2
|
@ -508,10 +508,10 @@ public class TFile implements Serializable, Comparable<TFile> {
|
||||||
if (directory == null) {
|
if (directory == null) {
|
||||||
String tmpDir = System.getProperty("java.io.tmpdir", ".");
|
String tmpDir = System.getProperty("java.io.tmpdir", ".");
|
||||||
tmpDirFile = new TFile(tmpDir);
|
tmpDirFile = new TFile(tmpDir);
|
||||||
|
tmpDirFile.mkdirs();
|
||||||
} else {
|
} else {
|
||||||
tmpDirFile = directory;
|
tmpDirFile = directory;
|
||||||
}
|
}
|
||||||
tmpDirFile.mkdirs();
|
|
||||||
TFile result;
|
TFile result;
|
||||||
do {
|
do {
|
||||||
result = genTempFile(prefix, newSuffix, tmpDirFile);
|
result = genTempFile(prefix, newSuffix, tmpDirFile);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user