| | |
| | | * 删除发布文件 |
| | | */ |
| | | public void deleteFiles(List<PublishEntity> list) { |
| | | String uploadPath = pathHelper.getConfig().getUploadPath(); |
| | | String lfData = pathHelper.getConfig().getLfData(); |
| | | for (PublishEntity pub : list) { |
| | | if (null != pub.getUrl() && pub.getUrl().contains("/SG/")) { |
| | | continue; |
| | | } |
| | | |
| | | String path = uploadPath + File.separator + pub.getPath().replace("\\tileset.json", ""); |
| | | String path = lfData + pub.getPath().replace("\\tileset.json", ""); |
| | | File file = new File(path); |
| | | if (!file.exists() || !file.isDirectory()) { |
| | | continue; |