MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / GetUnzipFileNum

Function GetUnzipFileNum

pkg/util/zip/unzip.go:117–123  ·  view source on GitHub ↗
(b []byte, length int64)

Source from the content-addressed store, hash-verified

115}
116
117func GetUnzipFileNum(b []byte, length int64) (int, error) {
118 zr, err := zip.NewReader(bytes.NewReader(b), length)
119 if err != nil {
120 return 0, err
121 }
122 return len(zr.File), nil
123}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected