Message321270
from shutil import move
from pathlib import Path
a = Path("s")
b = Path("a.txt")
move(b, a)
This will throw AttributeError: 'WindowsPath' object has no attribute 'rstrip'
From the document, it should able to move:
If the destination is an existing directory, then src is moved inside that directory. If the destination already exists but is not a directory, it may be overwritten depending on os.rename() semantics.
If a = Path("s/a.txt"), it does not throw error.
Enviroment:
Window 10
Python 3.7.0 |
|
Date |
User |
Action |
Args |
2018-07-08 10:57:23 | joshuaavalon | set | recipients:
+ joshuaavalon, paul.moore, tim.golden, zach.ware, steve.dower |
2018-07-08 10:57:23 | joshuaavalon | set | messageid: <1531047443.22.0.56676864532.issue34069@psf.upfronthosting.co.za> |
2018-07-08 10:57:23 | joshuaavalon | link | issue34069 messages |
2018-07-08 10:57:22 | joshuaavalon | create | |
|