Perfect. Thanks, Christian and Edwin. -Bill On Tue, Aug 12, 2008 at 12:56 PM, <[EMAIL PROTECTED]> wrote:
> os.paht.gmtime(path) returns the last modification of path. > check out http://docs.python.org/lib/module-os.path.html > > regards > Edwin > > -----Original Message----- > From: [EMAIL PROTECTED]: > python-list-bounces+edwin.madari <python-list-bounces%2Bedwin.madari>= > [EMAIL PROTECTED] Behalf Of William Purcell > Sent: Tuesday, August 12, 2008 1:47 PM > To: Python List > Subject: Checking a file's time stamp. > > > Hi all, > I am wanting to check to see the last time a file was edited. For example, > I have a directory containing two text files, file1.txt and file2.txt. I > want to be able to process these files but only if they have been edited > since the last time they were processed. I think that I want to be able to > check the time stamp of each file. Can anyone tell me how to do that or > point me in a better direction of checking the last time a file was edited? > Thanks, > Bill > > > > > > The information contained in this message and any attachment may be > proprietary, confidential, and privileged or subject to the work > product doctrine and thus protected from disclosure. If the reader > of this message is not the intended recipient, or an employee or > agent responsible for delivering this message to the intended > recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. > If you have received this communication in error, please notify me > immediately by replying to this message and deleting it and all > copies and backups thereof. Thank you. > > >
-- http://mail.python.org/mailman/listinfo/python-list