fix bugs in temp rework

This commit is contained in:
Grahame Grieve 2022-04-22 16:36:16 +10:00
parent 6bd8dd257e
commit 79bff7d1bb
2 changed files with 2 additions and 2 deletions

View File

@ -595,7 +595,7 @@ public class Utilities {
if (s.length() == 0) {
if ("[tmp]".equals(a)) {
if (hasCTempDir()) {
a = Utilities.path("[tmp]");
a = C_TEMP_DIR;
} else if (ToolGlobalSettings.hasTempPath()) {
a = ToolGlobalSettings.getTempPath();
} else {

View File

@ -92,7 +92,7 @@ class UtilitiesTest {
} else if (os.toUpperCase().contains(WINDOWS)) {
File tmp = new File(Utilities.C_TEMP_DIR);
if(tmp.exists()) {
return Utilities.C_TEMP_DIR;
return Utilities.C_TEMP_DIR + '\\';
} else {
return System.getProperty("java.io.tmpdir");
}