oh-my-posh/src/template/files.go

12 lines
196 B
Go
Raw Normal View History

package template
import "path/filepath"
func glob(pattern string) (bool, error) {
matches, err := filepath.Glob(pattern)
if err != nil {
return false, err
}
return len(matches) > 0, nil
}