|
|
|
|
89
|
new_name = re.sub(r'(\.[^.]+)$', '', new_name)
|
89
|
new_name = re.sub(r'(\.[^.]+)$', '', new_name)
|
90
|
|
90
|
|
91
|
if self._type in [ActionDescription.ARCHIVING, ActionDescription.DELETION]:
|
91
|
if self._type in [ActionDescription.ARCHIVING, ActionDescription.DELETION]:
|
92
|
- new_name += ' - %s the %s' % (self._to_name[self._type], datetime.now().strftime('%d-%m-%Y at %H:%M'))
|
|
|
|
|
92
|
+ new_name += ' - %s the %s' % (self._to_name[self._type], datetime.now().strftime('%d-%m-%Y at %H_%M'))
|
93
|
else:
|
93
|
else:
|
94
|
new_name = re.sub(
|
94
|
new_name = re.sub(
|
95
|
r'( - (%s|%s) the .*)$' % (self._to_name[ActionDescription.DELETION], self._to_name[ActionDescription.ARCHIVING]),
|
95
|
r'( - (%s|%s) the .*)$' % (self._to_name[ActionDescription.DELETION], self._to_name[ActionDescription.ARCHIVING]),
|