isDirectory checks if the given path is a directory
(path string)
| 341 | |
| 342 | // isDirectory checks if the given path is a directory |
| 343 | func (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 |
| 349 | func (v *Validator) displayStats(result *output.ValidationResult) { |