detect sample files and flag their status; create filteredFileName