MCPcopy Create free account
hub / github.com/bufbuild/buf / GetTargetFilePaths

Function GetTargetFilePaths

private/bufpkg/bufmodule/module_read_bucket.go:199–205  ·  view source on GitHub ↗

GetTargetFilePaths is a convenience function that gets all the target file paths for the ModuleReadBucket. Sorted.

(ctx context.Context, moduleReadBucket ModuleReadBucket)

Source from the content-addressed store, hash-verified

197//
198// Sorted.
199func GetTargetFilePaths(ctx context.Context, moduleReadBucket ModuleReadBucket) ([]string, error) {
200 fileInfos, err := GetTargetFileInfos(ctx, moduleReadBucket)
201 if err != nil {
202 return nil, err
203 }
204 return xslices.Map(fileInfos, func(fileInfo FileInfo) string { return fileInfo.Path() }), nil
205}
206
207// GetDocFile gets the singular documentation File for the Module, if it exists.
208//

Callers

nothing calls this directly

Calls 2

GetTargetFileInfosFunction · 0.85
PathMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…