MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / findMtaDescriptorFile

Function findMtaDescriptorFile

util/archive_handler.go:53–60  ·  view source on GitHub ↗
(files []*zip.File)

Source from the content-addressed store, hash-verified

51}
52
53func findMtaDescriptorFile(files []*zip.File) *zip.File {
54 for _, file := range files {
55 if file.Name == defaultDescriptorPath {
56 return file
57 }
58 }
59 return nil
60}
61
62func CreateMtaArchive(source, target string) error {
63 zipfile, err := os.Create(target)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected