File: usage.rst

package info (click to toggle)
pyreflink 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: python: 333; makefile: 147; ansic: 64; sh: 16
file content (13 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
=====
Usage
=====

To use Python reflink in a project::

    import reflink

    from reflink import reflink
    reflink("large_file.img", "copy_of_file.img")

Raises a ``NotImplementedError`` when the OS does not implement reflink.
Raises a ``ReflinkImpossibleError`` when trying to reflink between devices,