MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / _add_treeitem

Method _add_treeitem

src/__init__.py:1978–1982  ·  view source on GitHub ↗
( self, memory, name, path=None)

Source from the content-addressed store, hash-verified

1976 mupdf.fz_mount_multi_archive( self.this, sub, path)
1977
1978 def _add_treeitem( self, memory, name, path=None):
1979 buff = JM_BufferFromBytes( memory)
1980 sub = mupdf.fz_new_tree_archive( mupdf.FzTree())
1981 mupdf.fz_tree_archive_add_buffer( sub, name, buff)
1982 mupdf.fz_mount_multi_archive( self.this, sub, path)
1983
1984 def _add_ziptarfile( self, filepath, type_, path=None):
1985 if type_ == 1:

Callers 1

addMethod · 0.95

Calls 1

JM_BufferFromBytesFunction · 0.85

Tested by

no test coverage detected