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

Method isDirectory

cmd/gosqlx/cmd/validator.go:343–346  ·  view source on GitHub ↗

isDirectory checks if the given path is a directory

(path string)

Source from the content-addressed store, hash-verified

341
342// isDirectory checks if the given path is a directory
343func (v *Validator) isDirectory(path string) bool {
344 info, err := os.Stat(path)
345 return err == nil && info.IsDir()
346}
347
348// displayStats displays validation statistics
349func (v *Validator) displayStats(result *output.ValidationResult) {

Callers 1

expandFileArgsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected