MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / copyFile

Function copyFile

pkg/go/cmd/codebase-memory-mcp/main.go:319–332  ·  view source on GitHub ↗
(src, dst string)

Source from the content-addressed store, hash-verified

317}
318
319func copyFile(src, dst string) error {
320 in, err := os.Open(src)
321 if err != nil {
322 return err
323 }
324 defer in.Close()
325 out, err := os.Create(dst)
326 if err != nil {
327 return err
328 }
329 defer out.Close()
330 _, err = io.Copy(out, in)
331 return err
332}
333
334func execBinary(bin string, args []string) error {
335 if runtime.GOOS == "windows" {

Callers 1

downloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected