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

Function copyFile

internal/instructions/install.go:243–258  ·  view source on GitHub ↗
(src, dst string)

Source from the content-addressed store, hash-verified

241}
242
243func copyFile(src, dst string) error {
244 in, err := os.Open(src)
245 if err != nil {
246 return err
247 }
248 defer in.Close()
249 out, err := os.Create(dst)
250 if err != nil {
251 return err
252 }
253 defer out.Close()
254 if _, err := io.Copy(out, in); err != nil {
255 return err
256 }
257 return out.Sync()
258}

Callers 1

InstallMethod · 0.85

Calls 1

CreateMethod · 0.80

Tested by

no test coverage detected