[issue24229] pathlib.Path should have a copy() method

Serhiy Storchaka report at bugs.python.org
Mon May 18 21:07:50 CEST 2015


Serhiy Storchaka added the comment:

File renaming is simple and usually atomic operation. File copying is complex operation. What memory buffer should be used for copying? What to do with growing files or reading with errors? Should file space be preallocated before copyiong to decrease fragmentation? How handle sparse files? Can be optimized copyiong on file systems with compression? What to do with NT streams? What to do with extended attributes? What to do with directories, links and other special files?

I think that pathlib is not good place for this function (as well as for handling ZIP files or playing multimedia).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24229>
_______________________________________


More information about the Python-bugs-list mailing list