|
@@ -1,8 +1,13 @@
|
|
|
package com.fdkankan.common.util;
|
|
|
|
|
|
+import cn.hutool.core.io.FileUtil;
|
|
|
import cn.hutool.core.util.ReUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
+
|
|
|
+import java.io.File;
|
|
|
+import java.util.List;
|
|
|
import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
|
import jdk.nashorn.internal.runtime.regexp.joni.Regex;
|
|
@@ -54,14 +59,16 @@ public class StrExtUtil extends StrUtil {
|
|
|
return ReUtil.contains(regex, content);
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
-
|
|
|
- String test = null;
|
|
|
-// System.out.println(test.lastIndexOf("."));
|
|
|
-// System.out.println(test.substring(test.lastIndexOf(".")));
|
|
|
+ public static void main(String[] args) throws Exception {
|
|
|
|
|
|
- System.out.println("123".equals(test));;
|
|
|
+// String test = null;
|
|
|
+//// System.out.println(test.lastIndexOf("."));
|
|
|
+//// System.out.println(test.substring(test.lastIndexOf(".")));
|
|
|
+//
|
|
|
+// System.out.println("123".equals(test));;
|
|
|
|
|
|
+ List<String> fileNames = FileUtils.list(new File("C:\\Users\\dsx\\Desktop\\90d95cdb5_202211141023024060"));
|
|
|
+ System.out.println(JSON.toJSONString(fileNames));
|
|
|
|
|
|
|
|
|
}
|