Re: Comparing file last access date

2010-02-14 Thread MRAB
kak...@gmail.com wrote: Hi to all, what i want is to search a folder, and if the last access date of the files in that folder is greater than, lets say 7 days, those files deleted. (Somekind of a file cleaner script) I had problems with converting now = today = datetime.date.today() and stats =

Comparing file last access date

2010-02-14 Thread kak...@gmail.com
Hi to all, what i want is to search a folder, and if the last access date of the files in that folder is greater than, lets say 7 days, those files deleted. (Somekind of a file cleaner script) I had problems with converting now = today = datetime.date.today() and stats = os.stat(file) lastAccessDa