os.utime limitation on Windows?

Brett Tribble btribble at blueshiftinc.com
Wed Apr 5 18:14:29 EDT 2000


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