[issue24564] shutil.copytree fails when copying NFS to NFS

hans.meine report at bugs.python.org
Wed May 8 03:49:39 EDT 2019


hans.meine <hans_meine at gmx.net> added the comment:

I completely agree with msg322848, both with the suggested fix and with its rationale.  A future API improvement could be to have a "strict" mode where errors copying xattr are not silently ignored anymore (if there are src xattr, but they cannot be written, or if src xattr cannot be read, for instance), but the current functionality seems to be "copy xattr if possible", and that should be fixed accordingly.

I also opened #36850 arguing that in any case, EINVAL should be ignored when *reading* extended attributes, acknowledging that people might have more problems with ignoring errors on *writing* them when they were present on the source.  However, as stated above, I personally vote for the fix suggested in msg322848.

----------
nosy: +hans-meine

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24564>
_______________________________________


More information about the Python-bugs-list mailing list