MCPcopy
hub / github.com/gobyexample-cn/gobyexample / ensureDir

Function ensureDir

tools/generate.go:43–46  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

41}
42
43func ensureDir(dir string) {
44 err := os.MkdirAll(dir, 0755)
45 check(err)
46}
47
48func copyFile(src, dst string) {
49 dat, err := os.ReadFile(src)

Callers 1

mainFunction · 0.85

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected