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

Method add_file

pipcl.py:3252–3256  ·  view source on GitHub ↗
(self, from_, to_)

Source from the content-addressed store, hash-verified

3250 log2(f'Adding {to_}')
3251
3252 def add_file(self, from_, to_):
3253 log1(f'Adding file: {os.path.relpath(from_)} => {to_}')
3254 with open(from_, 'rb') as f:
3255 content = f.read()
3256 self.add_content(content, to_, verbose=False)
3257
3258 def get(self, record_path=None):
3259 '''

Callers

nothing calls this directly

Calls 2

add_contentMethod · 0.95
log1Function · 0.85

Tested by

no test coverage detected