MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / ValidateFileAccess

Function ValidateFileAccess

cmd/gosqlx/internal/cmdutil/input.go:182–184  ·  view source on GitHub ↗

ValidateFileAccess checks if we can read the file and it meets size requirements.

(path string)

Source from the content-addressed store, hash-verified

180
181// ValidateFileAccess checks if we can read the file and it meets size requirements.
182func ValidateFileAccess(path string) error {
183 return validate.ValidateInputFile(path)
184}
185
186// IsStdinPipe detects if stdin is a pipe (not a terminal).
187func IsStdinPipe() bool {

Callers

nothing calls this directly

Calls 1

ValidateInputFileFunction · 0.92

Tested by

no test coverage detected