Sangeet wrote:

> 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.

import os
import glob

path = r"c:\one\of\my directories\*"

youngest_file = max(glob.glob(path), key=os.path.getmtime)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to