"source/vscode:/vscode.git/clone" did not exist on "78f4043cd36c3607ea6e76ad1e705a9ac5fd7c37"
Commit a8230bbd authored by ZHAO Jian's avatar ZHAO Jian Committed by elunez
Browse files

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

* bug fix

java.io.FileNotFoundException: /tmpip2region.db (Permission denied)
parent 5693f178
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment