From ee3a83cf509e8329bba144ad108a806611cc51cd Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 7 Aug 2011 18:39:34 +0200 Subject: Implement the reset of the access/creation date --- lib/parser.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/parser.py') diff --git a/lib/parser.py b/lib/parser.py index e1b8f11..58dd7fa 100644 --- a/lib/parser.py +++ b/lib/parser.py @@ -93,8 +93,12 @@ class GenericParser(object): def do_backup(self): ''' - Do a backup of the file if asked + Do a backup of the file if asked, + and change his creation/access date ''' - if self.backup is False: + if self.backup is True: + os.utime(self.output, (0, 0)) + else: mat.secure_remove(self.filename) os.rename(self.output, self.filename) + os.utime(self.filename, (0, 0)) -- cgit v1.3