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

Method getFileSize

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

获取文件大小 @param filePath 文件路径 @return 文件大小

(String filePath)

Source from the content-addressed store, hash-verified

1265 * @return 文件大小
1266 */
1267 public static String getFileSize(String filePath) {
1268 return getFileSize(getFileByPath(filePath));
1269 }
1270
1271 /**
1272 * 获取文件大小

Callers

nothing calls this directly

Calls 3

getFileByPathMethod · 0.95
getFileLengthMethod · 0.95
byte2FitMemorySizeMethod · 0.95

Tested by

no test coverage detected