> On 7 Jul 2024, at 23:47, MRAB via Python-list <python-list@python.org> wrote:
> 
> For clarity I'd recommend os.replace instead. This is because on Windows 
> os.rename it would complain if the target file already exists, but os.replace 
> has the same behaviour on both Linux and Windows.

Agreed.

In this case the OP is on an RPi.

Barry

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to