@@ -75,4 +75,20 @@ public class FileUtil {
return matcher.find();
}
+ /**
+ * 创建文件目录
+ */
+ public static boolean makeDirs(String dirPath) {
+ if (StringUtils.isEmpty(dirPath)) {
+ return false;
+ }
+
+ File dir = new File(dirPath);
+ if (!dir.exists()) {
+ return dir.mkdirs();
+ return true;