repochecker: fix file concatenation
This commit is contained in:
parent
9dc1f401b7
commit
9fa89e0793
@ -103,7 +103,7 @@ func CheckExerciceFiles(i Importer, exercice fic.Exercice) (files []string, errs
|
|||||||
for _, fname := range flist {
|
for _, fname := range flist {
|
||||||
w, hash160, hash512 := fic.CreateHashBuffers()
|
w, hash160, hash512 := fic.CreateHashBuffers()
|
||||||
|
|
||||||
if err := i.getFile(path.Join(exercice.Path, "files", fname), bufio.NewWriter(w)); err != nil {
|
if err := getFile(i, path.Join(exercice.Path, "files", fname), bufio.NewWriter(w)); err != nil {
|
||||||
errs = append(errs, fmt.Sprintf("%q: unable to read file %q: %s", path.Base(exercice.Path), fname, err))
|
errs = append(errs, fmt.Sprintf("%q: unable to read file %q: %s", path.Base(exercice.Path), fname, err))
|
||||||
continue
|
continue
|
||||||
} else if _, err := fic.CheckBufferHash(hash160, hash512, digests[fname]); err != nil {
|
} else if _, err := fic.CheckBufferHash(hash160, hash512, digests[fname]); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user