Checking a file's time stamp.

William Purcell williamhpurcell at gmail.com
Tue Aug 12 14:07:01 EDT 2008


Perfect. Thanks, Christian and Edwin.
-Bill

On Tue, Aug 12, 2008 at 12:56 PM, <Edwin.Madari at verizonwireless.com> 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: python-list-bounces+edwin.madari=verizonwireless.com at python.org[mailto:
> python-list-bounces+edwin.madari <python-list-bounces%2Bedwin.madari>=
> verizonwireless.com at python.org]On 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080812/a2f833c6/attachment-0001.html>


More information about the Python-list mailing list