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

Method zipFile

common/src/main/java/pro/tools/file/ToolZip.java:140–143  ·  view source on GitHub ↗

压缩文件 @param resFilePath 待压缩文件路径 @param zipFilePath 压缩文件路径 @return true: 压缩成功 false: 压缩失败 @throws IOException IO错误时抛出

(String resFilePath, String zipFilePath)

Source from the content-addressed store, hash-verified

138 * IO错误时抛出
139 */
140 public static boolean zipFile(String resFilePath, String zipFilePath)
141 throws IOException {
142 return zipFile(resFilePath, zipFilePath, null);
143 }
144
145 /**
146 * 压缩文件

Callers 1

zipFilesMethod · 0.95

Calls 5

getFileByPathMethod · 0.95
isSpaceMethod · 0.95
isEmptyMethod · 0.95
readMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected