MCPcopy Create free account
hub / github.com/conforma/cli / IsFile

Function IsFile

internal/utils/helpers.go:120–123  ·  view source on GitHub ↗
(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

118}
119
120func IsFile(ctx context.Context, path string) (bool, error) {
121 fs := FS(ctx)
122 return afero.Exists(fs, path)
123}
124
125func HasSuffix(str string, extensions []string) bool {
126 for _, e := range extensions {

Callers 2

detectInputFunction · 0.92
TestIsFileFunction · 0.85

Calls 1

FSFunction · 0.85

Tested by 1

TestIsFileFunction · 0.68