diff --git a/blueprint/pathtools/glob.go b/blueprint/pathtools/glob.go index e6d43b3..bde4f4f 100644 --- a/blueprint/pathtools/glob.go +++ b/blueprint/pathtools/glob.go @@ -21,7 +21,8 @@ func Glob(pattern string) (matches, dirs []string, err error) { dirElems := strings.Split(dir, string(filepath.Separator)) for _, index := range wildIndices { - dirs = append(dirs, filepath.Join(dirElems[:index]...)) + dirs = append(dirs, strings.Join(dirElems[:index], + string(filepath.Separator))) } } }