管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-16 154d5502efd7ab83859da000c69885f0f8bdc298
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) {