MCPcopy Index your code
hub / github.com/Tencent/APIJSON / isFilePath

Method isFilePath

APIJSONORM/src/main/java/apijson/StringUtil.java:717–729  ·  view source on GitHub ↗

判断字符类型是否是路径 @param path @return

(String path)

Source from the content-addressed store, hash-verified

715 * @return
716 */
717 public static boolean isFilePath(String path) {
718 if (isNotEmpty(path, true) == false) {
719 return false;
720 }
721
722 if (! path.contains(".") || path.endsWith(".")) {
723 return false;
724 }
725
726 current = path;
727
728 return true;
729 }
730
731 //判断字符类型 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
732

Callers 1

isFilePathExistMethod · 0.95

Calls 1

isNotEmptyMethod · 0.95

Tested by

no test coverage detected