java.io.FileNotFoundException: /tmpip2region.db (Permission denied) (#146)

* bug fix

java.io.FileNotFoundException: /tmpip2region.db (Permission denied)
pull/151/head^2
ZHAO Jian 2019-10-21 09:34:35 +08:00 committed by elunez
parent 5693f178c6
commit a8230bbde7
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public class FileUtil extends cn.hutool.core.io.FileUtil {
* @throws Exception * @throws Exception
*/ */
public static File inputStreamToFile(InputStream ins, String name) 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()) { if (file.exists()) {
return file; return file;
} }