From a00514ff909d18abd0b09ee5e225ff555d720d3c Mon Sep 17 00:00:00 2001 From: Clemens Lange Date: Mon, 28 Sep 2020 13:29:48 +0200 Subject: [PATCH] Fix: loop over all lines in _file_index.txt file --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 111ba22..587443d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -156,7 +156,7 @@ func getFilesList(recordJSON map[string]interface{}, expand bool) ([]string, err defer resp.Body.Close() scanner := bufio.NewScanner(resp.Body) - for i := 0; scanner.Scan() && i < 5; i++ { + for i := 0; scanner.Scan(); i++ { filesSliceExpanded = append(filesSliceExpanded, scanner.Text()) } } else if strings.HasSuffix(filesSlice[idx], "_file_index.json") {