def match_cloud(self, includes, excludes):
cloud_objs = [cloud_obj.name for cloud_obj in self.container.get_objects()]<EOL>includes_pattern = r"<STR_LIT:|>".join([fnmatch.translate(x) for x in includes])<EOL>excludes_pattern = r"<STR_LIT:|>".join([fnmatch.translate(x) for x in excludes]) or r"<STR_LIT>"<EOL>excludes = [o for o in cloud_objs if re.match(excludes_pattern, o)]<EOL>includes = [o for o in cloud_objs if re.match(includes_pattern, o)]<EOL>return [o for o in includes if o not in excludes]<EOL>
Returns the cloud objects that match the include and exclude patterns.