sync: Ignore some hidden files/dirs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2021-07-30 11:32:23 +02:00
parent 357035deba
commit 7e9c2ccbe9
2 changed files with 5 additions and 3 deletions

View File

@ -42,7 +42,7 @@ func BuildFilesListInto(i Importer, exercice fic.Exercice, into string) (files [
errs = append(errs, err.Error())
} else {
for _, fname := range flist {
if fname == "DIGESTS.txt" {
if fname == "DIGESTS.txt" || fname == ".gitattributes" {
continue
}

View File

@ -26,8 +26,10 @@ func GetThemes(i Importer) ([]string, error) {
return nil, err
} else {
for _, dir := range dirs {
if _, err := i.listDir(dir); err == nil {
themes = append(themes, dir)
if !strings.HasPrefix(dir, ".") {
if _, err := i.listDir(dir); err == nil {
themes = append(themes, dir)
}
}
}
}