chris1610 / pbpython

Code, Notebooks and Examples from Practical Business Python
https://pbpython.com
BSD 3-Clause "New" or "Revised" License
1.99k stars 987 forks source link

Error in pathlib cheatsheet #18

Closed xelmirage closed 4 years ago

xelmirage commented 5 years ago

To rename a file, the correct function is f.rename(), with_name() only changes the name of the path object, not the real file.

chris1610 commented 4 years ago

Updated the cheatsheet. It will be included in the next update. Thanks.