def find_matching_files(self, includes):
if len(includes) == <NUM_LIT:0>: <EOL><INDENT>return [] <EOL><DEDENT>files = [f['<STR_LIT>'] for f in self.package['<STR_LIT>']]<EOL>includes = r'<STR_LIT:|>'.join([fnmatch.translate(x) for x in includes])<EOL>files = [f for f in files if re.match(includes, os.path.basename(f))] +[f for f in files if re.match(includes, f)]<EOL>files = list(set(files))<EOL>return files<EOL>
For various actions we need files that match patterns