MCPcopy Create free account
hub / github.com/celer-pkg/celer / pathExists

Function pathExists

pkgs/git/control.go:462–468  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

460}
461
462func pathExists(path string) bool {
463 _, err := os.Stat(path)
464 if err == nil {
465 return true
466 }
467 return !os.IsNotExist(err)
468}
469
470var commitHashPattern = regexp.MustCompile(`^[a-fA-F0-9]{7,40}$`)
471

Callers 2

shouldIgnoreStatusLineFunction · 0.70
ApplyPatchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected