| | |
| | | csvurl = null; |
| | | List<String> allString = new ArrayList<>(); |
| | | DowloadZipUtil dowloadZipUtil = new DowloadZipUtil(); |
| | | File file = dowloadZipUtil.downloadFile(fileUrl, "/usr/local/nginx/dist/enterprises/car"); |
| | | File file = dowloadZipUtil.downloadFile(fileUrl, "E:\\nginx-1.18.0\\dist"); |
| | | //文件名 |
| | | String name = file.getName(); |
| | | String substring = name.substring(0, name.length() - 4); |
| | | //解压数据 |
| | | FileZip fileZip = new FileZip(); |
| | | fileZip.ZipUncompress("/usr/local/nginx/dist/enterprises/car" + substring + ".zip", "/usr/local/nginx/dist/enterprises/car"); |
| | | fileZip.ZipUncompress("E:\\nginx-1.18.0\\dist" + substring + ".zip", "E:\\nginx-1.18.0\\dist"); |
| | | csvurl = substring + ".csv"; |
| | | } |
| | | /** |