mirror of https://github.com/elunez/eladmin
				
				
				
			java.io.FileNotFoundException: /tmpip2region.db (Permission denied) (#146)
* bug fix java.io.FileNotFoundException: /tmpip2region.db (Permission denied)pull/151/head^2
							parent
							
								
									5693f178c6
								
							
						
					
					
						commit
						a8230bbde7
					
				| 
						 | 
				
			
			@ -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