src/main/java/com/lf/server/helper/PathHelper.java
@@ -122,6 +122,22 @@ } /** * 获取临时路径 */ public String getTempPath(String subPath) { if (!StringHelper.isEmpty(subPath)) { String path = config.getTempPath() + File.separator + subPath; File file = new File(path); if (file.exists() && file.isDirectory()) { return path; } } return getTempPath(); } /** * 删除旧路径 */ public void deleteOldPath(String tempPath) {