MCPcopy Create free account
hub / github.com/aptly-dev/aptly / FilepathList

Method FilepathList

deb/package.go:780–792  ·  view source on GitHub ↗

FilepathList returns list of paths to files in package repository

(packagePool aptly.PackagePool)

Source from the content-addressed store, hash-verified

778
779// FilepathList returns list of paths to files in package repository
780func (p *Package) FilepathList(packagePool aptly.PackagePool) ([]string, error) {
781 var err error
782 result := make([]string, len(p.Files()))
783
784 for i, f := range p.Files() {
785 result[i], err = f.GetPoolPath(packagePool)
786 if err != nil {
787 return nil, err
788 }
789 }
790
791 return result, nil
792}

Callers

nothing calls this directly

Calls 2

FilesMethod · 0.95
GetPoolPathMethod · 0.80

Tested by

no test coverage detected