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

Function _equal_files

src/py/reactpy/reactpy/web/module.py:226–231  ·  view source on GitHub ↗
(f1: Path, f2: Path)

Source from the content-addressed store, hash-verified

224
225
226def _equal_files(f1: Path, f2: Path) -> bool:
227 f1 = f1.resolve()
228 f2 = f2.resolve()
229 return (
230 (f1.is_symlink() or f2.is_symlink()) and (f1.resolve() == f2.resolve())
231 ) or filecmp.cmp(str(f1), str(f2), shallow=False)
232
233
234def _copy_file(target: Path, source: Path, symlink: bool) -> None:

Callers 1

module_from_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected