Assign and require filenames in a directory to exports using a glob pattern.