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

Function File

pkg/lib/hash/hash.go:48–54  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

46}
47
48func File(path string) (string, error) {
49 fileBytes, err := files.ReadFileBytes(path)
50 if err != nil {
51 return "", err
52 }
53 return Bytes(fileBytes), nil
54}

Callers

nothing calls this directly

Calls 2

ReadFileBytesFunction · 0.92
BytesFunction · 0.85

Tested by

no test coverage detected