Accessing the files by last modified time

Tim Williams tjandacw at cox.net
Thu Mar 22 08:04:43 EDT 2012


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()



More information about the Python-list mailing list