[issue1545] shutil fails when copying to NTFS in Linux

Amaury Forgeot d'Arc report at bugs.python.org
Mon Dec 3 16:49:36 CET 2007


Amaury Forgeot d'Arc added the comment:

This reminds me of an option in os.walk:

"""
By default errors from the os.listdir() call are ignored. If optional
argument onerror is specified, it should be a function; it will be
called with one argument, an OSError instance. It can report the error
to continue with the walk, or raise the exception to abort the walk.
Note that the filename is available as the filename attribute of the
exception object.
"""

We could do something similar, except that by default, errors are not
ignored.

----------
nosy: +amaury.forgeotdarc

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1545>
__________________________________


More information about the Python-bugs-list mailing list