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 vstinner
Recipients mkesper, r.david.murray, serhiy.storchaka, vstinner
Date 2017-03-27.10:57:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490612237.07.0.637263011253.issue23241@psf.upfronthosting.co.za>
In-reply-to
Content
I'm unable to reproduce the bug on Python 3.6:
---
from pathlib import Path
import shutil
import os
def touch(name):
    with open(name, "x"):
        pass
os.mkdir('a')
touch('a/x')
touch('a/y')
touch('a/z')
os.mkdir('b')
source_path = Path('a')
destination_path = Path('b')
for file_name in source_path.glob('*'):
    file_name = file_name.name
    src = source_path / file_name
    dst = destination_path / file_name
    print("%r -> %r" % (src, dst))
    shutil.copyfile(src, dst)
---

Output:
---
PosixPath('a/y') -> PosixPath('b/y')
PosixPath('a/x') -> PosixPath('b/x')
PosixPath('a/z') -> PosixPath('b/z')
---

Thank you PEP 519 ;-)
History
Date User Action Args
2017-03-27 10:57:17vstinnersetrecipients: + vstinner, r.david.murray, mkesper, serhiy.storchaka
2017-03-27 10:57:17vstinnersetmessageid: <1490612237.07.0.637263011253.issue23241@psf.upfronthosting.co.za>
2017-03-27 10:57:17vstinnerlinkissue23241 messages
2017-03-27 10:57:16vstinnercreate