import os, time from os.path import join, getsize mytime = time.time() # numdays = 3 # file accessed within number of days before now runpath = "c:\\program files\\e frontier\\poser 7\\runtime" # location of runtime folder fldrs = ["textures","geometries","libraries\\materials"] # folders to check # print "---------------------------------------------------------------------------------------" print " Files accessed within " + str(numdays) + "days" print " Checking folders :" ; for f in fldrs: print "\t",f print "---------------------------------------------------------------------------------------" for f in fldrs: startdir = os.path.join(runpath,f) for root, dirs, files in os.walk(startdir): for file in files: fname = os.path.join(root,file) atime = os.path.getatime(fname) dur = mytime- atime mydays = dur/86400 if mydays < numdays: print file, "\t\t",root