sync: Expose sync.Exists function

This commit is contained in:
nemunaire 2023-05-03 10:54:02 +02:00
parent 5cf4565573
commit c5a059bd3b
8 changed files with 31 additions and 31 deletions

View file

@ -47,7 +47,7 @@ func buildExerciceHints(i Importer, exercice *fic.Exercice, exceptions *CheckExc
if hint.Content != "" {
errs = append(errs, NewHintError(exercice, h, n, fmt.Errorf("content and filename can't be filled at the same time")))
continue
} else if !i.exists(path.Join(exercice.Path, "hints", hint.Filename)) {
} else if !i.Exists(path.Join(exercice.Path, "hints", hint.Filename)) {
errs = append(errs, NewHintError(exercice, h, n, fmt.Errorf("%q: File not found", hint.Filename)))
continue
} else {