def METHOD_NAME(rootDir, args):
	for dirName, subdirList, fileList in os.walk(rootDir):
		for fname in fileList:
			if fnmatch(fname, args.ext):
				fullName = os.path.join(dirName, fname)
				processFile(fullName, args)
		# do not traverse into subdirs that match an ignore
		for ignore in args.ignore:
			if ignore in subdirList:
				index = subdirList.index(ignore)
				if index >= 0:
					del subdirList[index]