MCPcopy Index your code
hub / github.com/reactive-python/reactpy / _copy_file

Function _copy_file

src/py/reactpy/reactpy/web/module.py:234–239  ·  view source on GitHub ↗
(target: Path, source: Path, symlink: bool)

Source from the content-addressed store, hash-verified

232
233
234def _copy_file(target: Path, source: Path, symlink: bool) -> None:
235 target.parent.mkdir(parents=True, exist_ok=True)
236 if symlink:
237 target.symlink_to(source)
238 else:
239 shutil.copy(source, target)
240
241
242def module_from_string(

Callers 1

module_from_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected