Robin Siebler wrote: >How would I get/change the read-only attribute on a file? The only way that >I have found is win32file.GetFileAttributes. I have tried this, but I don't >what to do with the number it returns. > >Robin L. Siebler >Software Test Engineer >Palm >-------------------------------- >Garunteed to be bug free > > >_______________________________________________ >ActivePython mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs >Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython > > > > > Use: import os, stat mode = os.stat('filename') print stat.ST_ATIME(mode) # Time of last access. print stat.ST_MTIME(mode) # Time of last modification. print stat.ST_CTIME(mode) # Time of last status change (see manual pages for details).
or on 2.2 and above print mode.ST_ATIME :) I don't know how to change them (other than reading and writing to the file) May God Bless You Matthew Sherborne _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython