java.io.FileNotFoundException: /tmpip2region.db (Permission denied)
pull/142/head
ZHAO Jian 2019-10-14 00:22:18 +08:00 committed by GitHub
parent 8b5c04cb04
commit ac93d4faa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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") + "/" + name);
if (file.exists()) {
return file;
}