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

Method getDirSize

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

获取目录大小 @param dirPath 目录路径 @return 文件大小

(String dirPath)

Source from the content-addressed store, hash-verified

1240 * @return 文件大小
1241 */
1242 public static String getDirSize(String dirPath) {
1243 return getDirSize(getFileByPath(dirPath));
1244 }
1245
1246 /**
1247 * 获取目录大小

Callers

nothing calls this directly

Calls 3

getFileByPathMethod · 0.95
getDirLengthMethod · 0.95
byte2FitMemorySizeMethod · 0.95

Tested by

no test coverage detected