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

Method getFileName

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

获取全路径中的文件名 @param file 文件 @return 文件名

(File file)

Source from the content-addressed store, hash-verified

1446 * @return 文件名
1447 */
1448 public static String getFileName(File file) {
1449 if (file == null) {
1450 return null;
1451 }
1452 return getFileName(file.getPath());
1453 }
1454
1455 /**
1456 * 获取全路径中的文件名

Callers 4

unzipFileByKeywordMethod · 0.95
copyMethod · 0.80
moveMethod · 0.80
toExceptionMethod · 0.80

Calls 2

isSpaceMethod · 0.95
getPathMethod · 0.45

Tested by

no test coverage detected