oh-my-posh/src/template/files.go
2022-03-01 08:24:40 +01:00

12 lines
196 B
Go

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
}