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

Method StatFileInfo

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

StatFileInfo gets the FileInfo for the File within the Module as specified by the path. Returns an error with fs.ErrNotExist if the path is not part of the Module.

(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

51 //
52 // Returns an error with fs.ErrNotExist if the path is not part of the Module.
53 StatFileInfo(ctx context.Context, path string) (FileInfo, error)
54 // WalkFileInfos walks all Files in the Module, passing the FileInfo to a specified function.
55 //
56 // This will walk the .proto files, documentation file(s), and license files(s). This package

Callers 11

StatFileInfoMethod · 0.65
StatFileInfoMethod · 0.65
StatMethod · 0.65
TestTypesFromMainModuleFunction · 0.65
testBasicFunction · 0.65
testLicenseAndDocFunction · 0.65

Implementers 3

moduleReadBucketprivate/bufpkg/bufmodule/module_read_b
targetedModuleReadBucketprivate/bufpkg/bufmodule/module_read_b
filteredModuleReadBucketprivate/bufpkg/bufmodule/module_read_b

Calls

no outgoing calls

Tested by 5

TestTypesFromMainModuleFunction · 0.52
testBasicFunction · 0.52
testLicenseAndDocFunction · 0.52