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

Method ReadChecksum

taskfile/node_cache.go:57–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (node *CacheNode) ReadChecksum() string {
58 b, _ := os.ReadFile(node.checksumPath())
59 return string(b)
60}
61
62func (node *CacheNode) WriteChecksum(checksum string) error {
63 if err := node.CreateCacheDir(); err != nil {

Callers 1

ChecksumPromptMethod · 0.95

Calls 1

checksumPathMethod · 0.95

Tested by

no test coverage detected