MCPcopy
hub / github.com/go-task/task / Read

Method Read

taskfile/node_cache.go:27–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (node *CacheNode) Read() ([]byte, error) {
28 return os.ReadFile(node.Location())
29}
30
31func (node *CacheNode) Write(data []byte) error {
32 if err := node.CreateCacheDir(); err != nil {

Callers 1

readRemoteNodeContentMethod · 0.95

Calls 1

LocationMethod · 0.95

Tested by

no test coverage detected