Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The FileExistsError when using the pathlib file.rename function means that the destination file already exists and cannot be overwritten. The rename function in pathlib will not overwrite an existing file.