def images(self): _images = self.resolver.QueryPredicateObject( self.urn, lexicon.AFF4_TYPE, lexicon.standard11.FileImage) for image in _images: pathName = next( self.resolver.QuerySubjectPredicate( self.urn, image, lexicon.standard11.pathName)) yield aff4.LogicalImage(self, self.resolver, self.urn, image, pathName)
def open(self, urn): pathName = next(self.resolver.QuerySubjectPredicate(self.urn, urn, self.lexicon.pathName)) return aff4.LogicalImage(self, self.resolver, self.urn, urn, pathName)