summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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))