mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[by roman]fix temp file paths
This commit is contained in:
@@ -370,7 +370,9 @@ public class FileUtil {
|
||||
while(true){
|
||||
try{
|
||||
//noinspection SSBasedInspection
|
||||
return File.createTempFile(prefix, suffix, dir).getCanonicalFile();
|
||||
final File temp = File.createTempFile(prefix, suffix, dir);
|
||||
final File canonical = temp.getCanonicalFile();
|
||||
return SystemInfo.isWindows && canonical.getAbsolutePath().contains(" ") ? temp.getAbsoluteFile() : canonical;
|
||||
}
|
||||
catch(IOException e){ // Win32 createFileExclusively access denied
|
||||
if (++exceptionsCount >= 100) {
|
||||
|
||||
Reference in New Issue
Block a user