Re: Removing outdated files

2007-01-23 Thread Laurent Pointal
Jan Danielsson a écrit : > Hello all, > >I have a backup system which produces files using the following pattern: ... > >Obviously, I have little need for *all* those files. What I want to > do is to delete old files according to this pattern: > >- Keep all backup files which are two

Re: Removing outdated files

2007-01-22 Thread Jan Danielsson
Gabriel Genellina wrote: >>I've been looking at the datetime.date class, but I can't see any >> easy way to parse the week number from it. I could calculate this >> information by brute force -- but I get a feeling that there are >> functions in Python to extract week numbers from a date. > >

Re: Removing outdated files

2007-01-22 Thread Gabriel Genellina
At Tuesday 23/1/2007 02:17, Jan Danielsson wrote: I've been looking at the datetime.date class, but I can't see any easy way to parse the week number from it. I could calculate this information by brute force -- but I get a feeling that there are functions in Python to extract week numbers fr