fix bugs in temp rework
This commit is contained in:
parent
6bd8dd257e
commit
79bff7d1bb
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue