This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kinow
Recipients cboltz, giampaolo.rodola, kinow
Date 2019-11-21.08:03:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hi Giampaolo,

I think it is more or less the same as the previous code, which was using os.list to return a list in memory. My first tentative fix was:

    def copytree(src, ...):
        entries = os.list(src)
        return _copytree(entries=entries, ...)

But the previous PR also altered _copytree to use the return of os.scandir DirEntry's, so the change above results in AttributeError: 'str' object has no attribute 'name'.

Would be better to avoid using iterator to populate a list, and also using the DirEntry in _copytree, and just stick with the previous code with (i.e. os.listdir() and a single copytree method as before)? Or if you think we should go with your suggestion, I'm good with it as well - especially as it'd be a much simpler PR :)

Date User Action Args
2019-11-21 08:03:36kinowsetrecipients: + kinow, giampaolo.rodola, cboltz
2019-11-21 08:03:36kinowsetmessageid: <>
2019-11-21 08:03:36kinowlinkissue38688 messages
2019-11-21 08:03:35kinowcreate