def callback(self, event):
<EOL>if event.mask == <NUM_LIT>:<EOL><INDENT>if event.name.endswith('<STR_LIT>'):<EOL><INDENT>print_success("<STR_LIT>")<EOL>if event.name in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if event.name == '<STR_LIT>':<EOL><INDENT>self.domain_groups_file = event.pathname<EOL><DEDENT>if event.name == '<STR_LIT>':<EOL><INDENT>self.domain_users_file = event.pathname<EOL><DEDENT>if self.domain_groups_file and self.domain_users_file:<EOL><INDENT>print_success("<STR_LIT>")<EOL>subprocess.Popen(['<STR_LIT>', self.domain_groups_file, self.domain_users_file])<EOL><DEDENT><DEDENT>elif event.name == '<STR_LIT>':<EOL><INDENT>print_success("<STR_LIT>")<EOL>subprocess.Popen(['<STR_LIT>', event.pathname])<EOL><DEDENT>self.ldap_strings = []<EOL>self.write_targets()<EOL><DEDENT>if event.name.endswith('<STR_LIT>'):<EOL><INDENT>host = event.name.replace('<STR_LIT>', '<STR_LIT>')<EOL>print_success("<STR_LIT>".format(host))<EOL>subprocess.Popen(['<STR_LIT>', event.pathname])<EOL>self.ips.remove(host)<EOL>self.write_targets()<EOL><DEDENT><DEDENT>
Function that gets called on each event from pyinotify.