enumeratefiles uses list segment