MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / isFileExists

Function isFileExists

internal/config.go:79–85  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

77}
78
79func isFileExists(fileName string) (bool, error) {
80 _, err := os.Stat(fileName)
81 if errors.Is(err, os.ErrNotExist) {
82 return false, nil
83 }
84 return err == nil, err
85}

Callers 1

LookupConfigPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected