MCPcopy Index your code
hub / github.com/RustPython/RustPython / _write_contents

Function _write_contents

Lib/importlib/resources/_common.py:203–211  ·  view source on GitHub ↗
(target, source)

Source from the content-addressed store, hash-verified

201
202
203def _write_contents(target, source):
204 child = target.joinpath(source.name)
205 if source.is_dir():
206 child.mkdir()
207 for item in source.iterdir():
208 _write_contents(child, item)
209 else:
210 child.write_bytes(source.read_bytes())
211 return child

Callers 1

_temp_dirFunction · 0.85

Calls 6

joinpathMethod · 0.45
is_dirMethod · 0.45
mkdirMethod · 0.45
iterdirMethod · 0.45
write_bytesMethod · 0.45
read_bytesMethod · 0.45

Tested by

no test coverage detected