MCPcopy Create free account
hub / github.com/SeanDragon/protools / getDirName

Method getDirName

common/src/main/java/pro/tools/file/ToolFile.java:1417–1422  ·  view source on GitHub ↗

获取全路径中的最长目录 @param file 文件 @return filePath最长目录

(File file)

Source from the content-addressed store, hash-verified

1415 * @return filePath最长目录
1416 */
1417 public static String getDirName(File file) {
1418 if (file == null) {
1419 return null;
1420 }
1421 return getDirName(file.getPath());
1422 }
1423
1424 /**
1425 * 获取全路径中的最长目录

Callers

nothing calls this directly

Calls 2

isSpaceMethod · 0.95
getPathMethod · 0.45

Tested by

no test coverage detected