判断是否为路径 @param path @return
(String path)
| 706 | * @return |
| 707 | */ |
| 708 | public static boolean isPath(String path) { |
| 709 | return StringUtil.isNotEmpty(path, true) && path.contains(SEPARATOR) |
| 710 | && path.contains(SEPARATOR + SEPARATOR) == false && path.endsWith(SEPARATOR) == false; |
| 711 | } |
| 712 | |
| 713 | /**判断字符类型是否是路径 |
| 714 | * @param path |