summaryrefslogtreecommitdiff
path: root/lib/parser.py
diff options
context:
space:
mode:
authorjvoisin2011-08-07 18:39:34 +0200
committerjvoisin2011-08-07 18:39:34 +0200
commitee3a83cf509e8329bba144ad108a806611cc51cd (patch)
treee446c90162b7843ce44efe3c7c1d30886e321f23 /lib/parser.py
parentb6f3cb25cbb61b363282ba0b778603391d2dc328 (diff)
Implement the reset of the access/creation date
Diffstat (limited to 'lib/parser.py')
-rw-r--r--lib/parser.py8
1 files changed, 6 insertions, 2 deletions
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):
93 93
94 def do_backup(self): 94 def do_backup(self):
95 ''' 95 '''
96 Do a backup of the file if asked 96 Do a backup of the file if asked,
97 and change his creation/access date
97 ''' 98 '''
98 if self.backup is False: 99 if self.backup is True:
100 os.utime(self.output, (0, 0))
101 else:
99 mat.secure_remove(self.filename) 102 mat.secure_remove(self.filename)
100 os.rename(self.output, self.filename) 103 os.rename(self.output, self.filename)
104 os.utime(self.filename, (0, 0))