def cleanDirs(self, folderPath='', dirExtension='.fbm'):
		deleted = False
		if not folderPath:
			moBuLogger.error("No folderPath arg passed.")
			return False
		
		for root, dirs, unused in os.walk(folderPath):
			for _dir in dirs:
				dirPath = os.path.join(root, _dir)
				if Path(dirPath).isdir:
					if re.search(dirExtension, dirPath):
						try:
							shutil.rmtree(dirPath)
							deleted = True
						except WindowsError:
							moBuLogger.info("Failed to remove '%s'" % dirPath)
		return deleted
Returns choices ready to be output in the template.
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/moBu/core/moBuFile.py/MoBuFile.cleanDirs--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/admin/filters.py/ListFilter.choices