[issue33414] Make shutil.copytree use os.scandir to take advantage of cached is_(dir|file|symlink)

Andrés Delfino report at bugs.python.org
Thu May 3 00:09:33 EDT 2018


New submission from Andrés Delfino <adelfino at gmail.com>:

Right now we are using os.path.is(dir|file|symlink) in shutil.copytree, but taking advantage of os.scandir's is_(dir|file|symlink) seems the way to go.

I'll make a PR with to start the discussion with a proof of concept.

----------
components: Library (Lib)
messages: 316108
nosy: adelfino
priority: normal
severity: normal
status: open
title: Make shutil.copytree use os.scandir to take advantage of cached is_(dir|file|symlink)
versions: Python 3.8

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


More information about the Python-bugs-list mailing list