def write_pruned_iocs(self, directory=None, pruned_source=None):
"""<STR_LIT>"""<EOL>if pruned_source is None:<EOL><INDENT>pruned_source = self.pruned_11_iocs<EOL><DEDENT>if len(pruned_source) < <NUM_LIT:1>:<EOL><INDENT>log.error('<STR_LIT>')<EOL>return False<EOL><DEDENT>if not directory:<EOL><INDENT>directory = os.getcwd()<EOL><DEDENT>if os.path.isfile(directory):<EOL><INDENT>log.error('<STR_LIT>')<EOL>return False<EOL><DEDENT>utils.safe_makedirs(directory)<EOL>output_dir = os.path.abspath(directory)<EOL>for iocid in pruned_source:<EOL><INDENT>ioc_obj = self.iocs_10[iocid]<EOL>ioc_obj.write_ioc_to_file(output_dir=output_dir, force=True)<EOL><DEDENT>return True<EOL>
Writes IOCs to a directory that have been pruned of some or all IOCs.

:param directory: Directory to write IOCs to.  If not provided, the current working directory is used.
:param pruned_source: Iterable containing a set of iocids.  Defaults to self.iocs_10.
:return: