def hashToPath(self, hash):
        # proxy code passes in hex digests with version suffixes, so just pass
        # that through.
        if len(hash) < 40:
            hash = sha1helper.sha1ToString(hash)
        if (len(hash) < 5):
            raise KeyError, ("invalid hash %s" % hash)

        return os.sep.join((self.top, hash[0:2], hash[2:]))
dataset/ETHPy150Open sassoftware/conary/conary/repository/datastore.py/ShallowDataStore.hashToPath/original