Message290582
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 ;-) |
|
Date |
User |
Action |
Args |
2017-03-27 10:57:17 | vstinner | set | recipients:
+ vstinner, r.david.murray, mkesper, serhiy.storchaka |
2017-03-27 10:57:17 | vstinner | set | messageid: <1490612237.07.0.637263011253.issue23241@psf.upfronthosting.co.za> |
2017-03-27 10:57:17 | vstinner | link | issue23241 messages |
2017-03-27 10:57:16 | vstinner | create | |
|