mirror of https://github.com/elunez/eladmin
java.io.FileNotFoundException: /tmpip2region.db (Permission denied)
parent
ac93d4faa0
commit
9f726bb407
|
@ -136,7 +136,7 @@ public class FileUtil extends cn.hutool.core.io.FileUtil {
|
|||
* @throws Exception
|
||||
*/
|
||||
public static File inputStreamToFile(InputStream ins, String name) throws Exception{
|
||||
File file = new File(System.getProperty("java.io.tmpdir") + "/" + name);
|
||||
File file = new File(System.getProperty("java.io.tmpdir") + File.separator + name);
|
||||
if (file.exists()) {
|
||||
return file;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue