MCPcopy Index your code
hub / github.com/codebench-dev/worker / copy

Function copy

vmm.go:15–22  ·  view source on GitHub ↗
(src string, dst string)

Source from the content-addressed store, hash-verified

13)
14
15func copy(src string, dst string) error {
16 data, err := ioutil.ReadFile(src)
17 if err != nil {
18 return err
19 }
20 err = ioutil.WriteFile(dst, data, 0644)
21 return err
22}
23
24// Create a VMM with a given set of options and start the VM
25func createAndStartVM(ctx context.Context) (*runningFirecracker, error) {

Callers 1

createAndStartVMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected