Skip to content

Commit

Permalink
Add os based path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Chamindu36 committed Aug 13, 2020
1 parent f3d5247 commit 2403de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import-export-cli/integration/base/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func CreateTempDir(t *testing.T, path string) {
}

func GetExportedPathFromOutput(output string) string {
return strings.ReplaceAll(strings.ReplaceAll(output[strings.Index(output, "/"):], "\n", ""), " ", "")
return strings.ReplaceAll(strings.ReplaceAll(output[strings.Index(output, string(os.PathSeparator)):], "\n", ""), " ", "")
}

//Count number of files in a directory
Expand Down

0 comments on commit 2403de7

Please sign in to comment.