@property
    def photos(self):
        if not hasattr(self, '_photos'):
            available_photos = glob.glob(os.path.join(self.directory, "*.jpg"))
            self._photos = []
            for photo_path in available_photos:
                _pdir, photo = os.path.split(photo_path)
                if 0 > self.xml.find(photo):
                    self._photos.append(photo_path)
        return self._photos
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/logger/xform_fs.py/XFormInstanceFS.photos/swapped operands of `>`