|
@@ -119,13 +119,20 @@ public class FileUtil {
|
|
|
return (null != path) && ( cn.hutool.core.io.FileUtil.file("config/" + path).exists() || cn.hutool.core.io.FileUtil.file(path).exists());
|
|
|
}
|
|
|
|
|
|
+// public static File file(String path) {
|
|
|
+// if (null == path) {
|
|
|
+// return null;
|
|
|
+// }
|
|
|
+// if( cn.hutool.core.io.FileUtil.exist("config/" + path)){
|
|
|
+// return cn.hutool.core.io.FileUtil.file("config/" + path);
|
|
|
+// }
|
|
|
+// return cn.hutool.core.io.FileUtil.file( path);
|
|
|
+// }
|
|
|
+
|
|
|
public static File file(String path) {
|
|
|
if (null == path) {
|
|
|
return null;
|
|
|
}
|
|
|
- if( cn.hutool.core.io.FileUtil.exist("config/" + path)){
|
|
|
- return cn.hutool.core.io.FileUtil.file("config/" + path);
|
|
|
- }
|
|
|
- return cn.hutool.core.io.FileUtil.file( path);
|
|
|
+ return new File(path);
|
|
|
}
|
|
|
}
|