Use fnmatch in smartio.