MCPcopy Create free account
hub / github.com/driangle/taskmd / localFileChanged

Method localFileChanged

apps/cli/internal/sync/engine.go:327–333  ·  view source on GitHub ↗
(ts TaskState)

Source from the content-addressed store, hash-verified

325}
326
327func (e *Engine) localFileChanged(ts TaskState) (bool, error) {
328 currentHash, err := HashLocalFile(ts.FilePath)
329 if err != nil {
330 return false, err
331 }
332 return currentHash != ts.LocalHash, nil
333}
334
335func (e *Engine) scanExistingIDs(_ string) ([]string, error) {
336 scanDir := e.ConfigDir

Callers 1

updateTaskMethod · 0.95

Calls 1

HashLocalFileFunction · 0.85

Tested by

no test coverage detected