MCPcopy Create free account
hub / github.com/One-com/gone / stringInSlice

Function stringInSlice

hugorm/util.go:115–122  ·  view source on GitHub ↗

Check if file Exists func exists(fs afero.Fs, path string) (bool, error) { stat, err := fs.Stat(path) if err == nil { return !stat.IsDir(), nil } if os.IsNotExist(err) { return false, nil } return false, err }

(a string, list []string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected