MCPcopy Create free account
hub / github.com/code-scan/Goal / CheckExist

Function CheckExist

Gfile/file.go:30–36  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

28}
29
30func CheckExist(path string) bool {
31 _, oserr := os.Stat(path)
32 if os.IsNotExist(oserr) {
33 return false
34 }
35 return true
36}
37func UnZip(src string, dst string) {
38 if CheckExist(dst) == false {
39 os.MkdirAll(dst, 0777)

Callers 1

UnZipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected