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

Method WriteTimestamp

taskfile/node_cache.go:50–55  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

48}
49
50func (node *CacheNode) WriteTimestamp(t time.Time) error {
51 if err := node.CreateCacheDir(); err != nil {
52 return err
53 }
54 return os.WriteFile(node.timestampPath(), []byte(t.Format(time.RFC3339)), 0o644)
55}
56
57func (node *CacheNode) ReadChecksum() string {
58 b, _ := os.ReadFile(node.checksumPath())

Callers 1

readRemoteNodeContentMethod · 0.95

Calls 2

CreateCacheDirMethod · 0.95
timestampPathMethod · 0.95

Tested by

no test coverage detected