sync: don't try to import part of splitted files, just import the whole file

This commit is contained in:
nemunaire 2020-01-19 01:06:03 +01:00
parent 2bae30a841
commit f7762c0828

View File

@ -47,9 +47,9 @@ func BuildFilesListInto(i Importer, exercice fic.Exercice, into string) (files [
continue
}
if matched, _ := path.Match("*.00", fname); matched {
if matched, _ := path.Match("*.[0-9][0-9]", fname); matched {
fname = fname[:len(fname)-3]
} else if matched, _ := path.Match("*00", fname); matched {
} else if matched, _ := path.Match("*[0-9][0-9]", fname); matched {
fname = fname[:len(fname)-2]
} else if matched, _ := path.Match("*_MERGED", fname); matched {
continue