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

pull/142/head
Jan 2019-10-17 23:35:58 +08:00
parent ac93d4faa0
commit 9f726bb407
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
*/
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;
}