diff --git a/src/textfile/file.go b/src/textfile/file.go index d96d2e2..0388e3f 100644 --- a/src/textfile/file.go +++ b/src/textfile/file.go @@ -35,7 +35,7 @@ func (c *Collector) collectFileContents() { fileName: fileName, } - fullPath := filepath.Join(c.folderPath, file.Name()) + fullPath := filepath.Join(c.folderPath, fileName) content, err := ioutil.ReadFile(fullPath) if err != nil { c.appendErrorForPath(fileName)