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

Method zipFiles

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

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

(Collection<File> resFiles, String zipFilePath)

Source from the content-addressed store, hash-verified

51 * IO错误时抛出
52 */
53 public static boolean zipFiles(Collection<File> resFiles, String zipFilePath)
54 throws IOException {
55 return zipFiles(resFiles, zipFilePath, null);
56 }
57
58 /**
59 * 批量压缩文件

Callers

nothing calls this directly

Calls 2

getFileByPathMethod · 0.95
zipFileMethod · 0.95

Tested by

no test coverage detected