mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14: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) {
|
||||
String tmpDir = System.getProperty("java.io.tmpdir", ".");
|
||||
tmpDirFile = new TFile(tmpDir);
|
||||
tmpDirFile.mkdirs();
|
||||
} else {
|
||||
tmpDirFile = directory;
|
||||
}
|
||||
tmpDirFile.mkdirs();
|
||||
TFile result;
|
||||
do {
|
||||
result = genTempFile(prefix, newSuffix, tmpDirFile);
|
||||
|
|
Loading…
Reference in New Issue
Block a user