os.utime limitation on Windows?

Brett Tribble btribble at blueshiftinc.com
Thu Apr 6 00:19:59 CEST 2000


Oh, I should mention that no error is reported by the second os.error
catch...

Brett

"Brett Tribble" <btribble at blueshiftinc.com> wrote in message
news:senek66krfg118 at corp.supernews.com...
> I have the following routine:
>
> def synctime(self, source, target):
>     try:
>         syncstat = os.stat(source)
>     except os.error:
>         self.statuswindow.insert('end', source + ': cannot get stats\n')
>     try:
>         os.utime(target, (syncstat[ST_ATIME], syncstat[ST_MTIME]))
>     except os.error:
>         self.statuswindow.insert('end', target + ': cannot change time\n')
>     return
>
> This works fine under NT on an NTFS drive, but doesn't seem to do anything
> on a 95 box on a FAT16 partition. Is this a limitation with 95, FAT16,
> Python, or a combination therein?
>
>
> Thanks in advance,
>
> Brett
>
>
>
>





More information about the Python-list mailing list