Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 721 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 721 Bytes

reflink-copy

Python wrapper for reflink-copy.

Installation

You can install the library via pip from PyPI:

pip install reflink-copy

Usage

from reflink_copy import reflink, reflink_or_copy

reflink("file1", "file2")
reflink_or_copy("file1", "file2")

Reference

def reflink(src: str | os.PathLike[str], dst: str | os.PathLike[str]) -> None: ...
def reflink_or_copy(src: str | os.PathLike[str], dst: str | os.PathLike[str]) -> None: ...

Contributing

python -m venv .venv; source .venv/bin/activate
pip install maturin pytest
maturin develop
pytest