MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / cp

Function cp

pager_lib/tqdm/cli.py:267–271  ·  view source on GitHub ↗

copy resource `name` to `dst`

(name, dst)

Source from the content-addressed store, hash-verified

265 from pathlib import Path
266
267 def cp(name, dst):
268 """copy resource `name` to `dst`"""
269 fi = resources.files('tqdm') / name
270 dst.write_bytes(fi.read_bytes())
271 log.info("written:%s", dst)
272 if manpath is not None:
273 cp('tqdm.1', Path(manpath) / 'tqdm.1')
274 if comppath is not None:

Callers 1

mainFunction · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected