[issue7858] os.utime(file, (0, 0, )) fails on on vfat, but doesn't fail immediately

Damien Elmes report at bugs.python.org
Fri Feb 5 17:07:39 CET 2010


New submission from Damien Elmes <resolver at gmail.com>:

It seems like you can't set a modtime of 0 on a vfat partition. This may not be a valid thing to do, but it took me a long time to figure out it was a bad thing, as the error doesn't appear until the next time the error flag is checked:

>>> os.utime("testfile", (0.0,0.0))
>>> import time
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
WindowsError: [Error 87] The parameter is incorrect

----------
messages: 98879
nosy: Damien.Elmes
severity: normal
status: open
title: os.utime(file, (0,0,)) fails on on vfat, but doesn't fail immediately
versions: Python 2.5, Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7858>
_______________________________________


More information about the Python-bugs-list mailing list