def get_filename(self, aid, version, cap_sha1=None):
        fname = self._build_fname(aid, version)
        if not self.has_file(aid, version):
            raise ValueError("File not found: %s" % fname)
        if cap_sha1 and not self._validate_hash(fname, cap_sha1):
            raise ValueError("Incorrect SHA1 hash!")
        return fname
dataset/ETHPy150Open Yubico/yubikey-neo-manager/neoman/storage.py/AppletCapStore.get_filename/original