Skip to content

Commit 38aef19

Browse files
authored
Merge pull request #162 from ashwathishiva/fix_win_path_bug
textanalyze: fixes path handling in windows as well
2 parents 545ce24 + d1c45f1 commit 38aef19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/analyze/text_analyze.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package analyzer
22

33
import (
4-
"path"
4+
"path/filepath"
55
"regexp"
66
"strconv"
77
"strings"
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
func analyzeTextAnalyze(analyzer *troubleshootv1beta1.TextAnalyze, getCollectedFileContents func(string) ([]byte, error)) (*AnalyzeResult, error) {
14-
fullPath := path.Join(analyzer.CollectorName, analyzer.FileName)
14+
fullPath := filepath.Join(analyzer.CollectorName, analyzer.FileName)
1515
collected, err := getCollectedFileContents(fullPath)
1616
if err != nil {
1717
return nil, errors.Wrapf(err, "failed to read collected file name: %s", fullPath)

0 commit comments

Comments
 (0)