lfs_shadow.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:tm-librarian 作者: FabricAttachedMemory 项目源码 文件源码
def truncate(self, shelf, length, fh):
        if fh is not None:
            # This is an update, but there's no good way to flag that to
            # __setitem__.  Do an idiot check here.
            assert (None, fh) in self, 'VFS thinks %s is open but LFS does not, shelf_id: %s' % (
                shelf.name, shelf.id)
        self[(shelf.id, None)] = shelf
        return 0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号