sync: ignore directory beginning with . (like .git)
This commit is contained in:
parent
9a9675bcf5
commit
32f1c86519
|
@ -26,7 +26,9 @@ func GetExercices(i Importer, theme fic.Theme) ([]string, error) {
|
||||||
} else {
|
} else {
|
||||||
for _, dir := range dirs {
|
for _, dir := range dirs {
|
||||||
if _, err := i.listDir(path.Join(theme.Path, dir)); err == nil {
|
if _, err := i.listDir(path.Join(theme.Path, dir)); err == nil {
|
||||||
exercices = append(exercices, dir)
|
if dir[0] != '.' {
|
||||||
|
exercices = append(exercices, dir)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user