(f1: Path, f2: Path)
| 224 | |
| 225 | |
| 226 | def _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 | |
| 234 | def _copy_file(target: Path, source: Path, symlink: bool) -> None: |