Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
48
func
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
ReadFileBytes
Function · 0.92
Bytes
Function · 0.85
Tested by
no test coverage detected