From d1c45f14561c497f7aa26b35019cd97e5502fa5f Mon Sep 17 00:00:00 2001 From: Ashwathi Shiva Date: Thu, 26 Mar 2020 00:58:40 -0400 Subject: [PATCH] fixes path handling in windows as well --- pkg/analyze/text_analyze.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/analyze/text_analyze.go b/pkg/analyze/text_analyze.go index 18e1bd93..7e5aa703 100644 --- a/pkg/analyze/text_analyze.go +++ b/pkg/analyze/text_analyze.go @@ -1,7 +1,7 @@ package analyzer import ( - "path" + "path/filepath" "regexp" "strconv" "strings" @@ -11,7 +11,7 @@ import ( ) func analyzeTextAnalyze(analyzer *troubleshootv1beta1.TextAnalyze, getCollectedFileContents func(string) ([]byte, error)) (*AnalyzeResult, error) { - fullPath := path.Join(analyzer.CollectorName, analyzer.FileName) + fullPath := filepath.Join(analyzer.CollectorName, analyzer.FileName) collected, err := getCollectedFileContents(fullPath) if err != nil { return nil, errors.Wrapf(err, "failed to read collected file name: %s", fullPath)