def _reflink_linux(existing_path: Path, new_path: Path) -> None: """Create a reflink to `existing_path` at `new_path` on Linux.""" import fcntl FICLONE = 0x40049409 ...
Than it should work on both macOs and linux, as the aim of /usr/bin/env python3 (instead of just /usr/bin/python3) is precisely to solve this OS issue, by 'routing' the version to the good python ...