]> git.parisson.com Git - yomguy-tools.git/commitdiff
no debug
authoryomguy <yomguy@parisson.com>
Wed, 25 Jul 2012 08:03:05 +0000 (10:03 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 25 Jul 2012 08:03:05 +0000 (10:03 +0200)
cleanup/rm_date_days.py

index 31d4feba3cb7f54541c7cbf1650c6cd5dcf6617c..3291433ebfecb780da087b01ecb9c8502bb00e9b 100644 (file)
@@ -17,7 +17,7 @@ for root, dirs, files in os.walk(dir):
         file_date = datetime.datetime.fromtimestamp(os.path.getmtime(file))
         diff = today - file_date
        if diff.days >= days:
-           #os.remove(file[1])
+           os.remove(file)
            print 'removed : ', file_date, file