Author selik
Recipients selik
Date 2020-04-14.03:36:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The pathlib module ``Path.replace(target)`` states that "If target points to an existing file or directory, it will be unconditionally replaced."  However, this does not appear to be true.  I experience an OSError ``[Errno 66] Directory not empty`` when attempting to ``replace`` to an existant target.

I see that others on StackOverflow encounter the same issue.  The top answer ignores the Python documentation and recommends removing the target directory before replacing.
Date User Action Args
2020-04-14 03:36:59seliksetrecipients: + selik
2020-04-14 03:36:59seliksetmessageid: <>
2020-04-14 03:36:59seliklinkissue40278 messages
2020-04-14 03:36:59selikcreate