Accessing the files by last modified time

Sangeet mrsangeet at gmail.com
Fri Mar 23 08:59:35 EDT 2012


On Thursday, 22 March 2012 17:34:43 UTC+5:30, Tim Williams  wrote:
> On Mar 22, 7:33 am, Sangeet <mrsang... at gmail.com> wrote:
> > Hi
> >
> > I am new to the python programming language.
> >
> > I've been trying to write a script that would access the last modified file in one of my directories. I'm using Win XP.
> >
> > I saw a similar topic, on the forum before, however the reply using (os.popen) didn't work out for me. I'm not sure whether it was due to syntax errors either.
> >
> > Thanks,
> > Sangeet
> 
> Check out os.stat()

Hey, thanks I tried playing around with this. I haven't got what I exactly wanted, but on the way there for sure! :)

Sangeet



More information about the Python-list mailing list