From: yomguy Date: Wed, 25 Jul 2012 08:03:05 +0000 (+0200) Subject: no debug X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d9d84ec547ccfef5f6dff50e611ce415031b9ebf;p=tools.git no debug --- diff --git a/cleanup/rm_date_days.py b/cleanup/rm_date_days.py index 31d4feb..3291433 100644 --- a/cleanup/rm_date_days.py +++ b/cleanup/rm_date_days.py @@ -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