def get_inode(self, name):
        if name in self._inode_cache:
            inode = self._inode_cache[name]()
            if inode is None:
                del self._inode_cache[name]
            else:
                return inode

        inode_tree = self._inodes_tt[name[1:]]
        inode = StorageInode(name, inode_tree, self)
        self._inode_cache[name] = weakref.ref(inode)

        return inode
dataset/ETHPy150Open mgax/SpaghettiFS/spaghettifs/storage.py/GitStorage.get_inode/original