MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / sameContent

Function sameContent

internal/instructions/install.go:231–241  ·  view source on GitHub ↗
(a, b string)

Source from the content-addressed store, hash-verified

229}
230
231func sameContent(a, b string) bool {
232 da, err := os.ReadFile(a)
233 if err != nil {
234 return false
235 }
236 db, err := os.ReadFile(b)
237 if err != nil {
238 return false
239 }
240 return string(da) == string(db)
241}
242
243func copyFile(src, dst string) error {
244 in, err := os.Open(src)

Callers 1

removeInstalledFileFunction · 0.85

Calls 1

ReadFileMethod · 0.80

Tested by

no test coverage detected