| | |
| | | package com.highdatas.srs.util; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | |
| | | import java.io.File; |
| | | import java.io.UnsupportedEncodingException; |
| | |
| | | } |
| | | |
| | | public static String createFile(String basePath,String project, String detail) { |
| | | String path = strJoin(basePath, "/", project,"/" ,detail); |
| | | String path; |
| | | if (StringUtils.isEmpty(detail)) { |
| | | path = strJoin(basePath, "/", project); |
| | | } |
| | | else { |
| | | path = strJoin(basePath, "/", project, "/", detail); |
| | | } |
| | | File dir = new File(path); |
| | | if (!dir.exists()) { |
| | | dir.mkdirs(); |