Copy files using Server Side Copy/Clone in Python?

99 Views Asked by At

Protocols like Samba and AFP support server side copy of files. The BTRFS file system even supports instant server side clone operations that don't take up space.

  • Windows Explorer, Robocopy and MacOS Finder already utilize this
  • Cloner is a sample implementation within xfstests
  • Here is a video showing it in action in Explorer

Overall it's an amazing feature and yet many copy tools including file copy in Python doesn't make use of it yet.

Is there an implementation of it already in Python?

Thanks!

1

There are 1 best solutions below

0
Patrick Wolf On

I actually found an implementation for Py2 & Py3 that does exactly that. It's called Python Reflinks