MCPcopy
hub / github.com/cortexlabs/cortex / ReadFileBytes

Function ReadFileBytes

pkg/lib/files/files.go:103–105  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

101}
102
103func ReadFileBytes(path string) ([]byte, error) {
104 return ReadFileBytesErrPath(path, path)
105}
106
107func ReadFileBytesErrPath(path string, errMsgPath string) ([]byte, error) {
108 path, err := EscapeTilde(path)

Callers 8

StructFromFilesFunction · 0.92
ReadYAMLFileFunction · 0.92
FileFunction · 0.92
addFileToArchiveFunction · 0.92
ProbesFromFileFunction · 0.92
mustReadJSONBytesFunction · 0.92
getDeploymentBytesFunction · 0.92
ReadFileFunction · 0.85

Calls 1

ReadFileBytesErrPathFunction · 0.85

Tested by

no test coverage detected