os.rename on Windows
Steven D'Aprano
steve at pearwood.info
Wed Mar 23 08:30:16 EDT 2016
On Wed, 23 Mar 2016 11:28 pm, Random832 wrote:
> On Wed, Mar 23, 2016, at 08:17, Steven D'Aprano wrote:
>> Any Windows users here?
>>
>> print(e.winerror) # Windows only
>> print(e.errno)
>> print(repr(e))
>
> 183
> 17
> FileExistsError(17, 'Cannot create a file when that file already
> exists')
>
> Python 3.5.1.
Great!
Thanks, and to Chris too (and anyone else who answers).
--
Steven
More information about the Python-list
mailing list