'''
if mode not in self.__file_extensions_dict:
- raise Exception('Unrecognized extension')
+ raise Exception('Unrecognized extension mode=[%s] requested for files'
+ % str(mode))
self.excluded_files = excluded_files
self.included_files = included_files
elif 'aes' in mode:
index_mode = mode[1:]
elif mode not in self.__index_extensions_dict:
- raise Exception('Unrecognized extension')
+ raise Exception('Unrecognized extension mode=[%s] requested for index'
+ % str(mode))
self.index_mode = index_mode
self.current_time = datetime.datetime.now()
def restore(self, itpath, l_no, callback=None):
'''
- Restore the path from the appropiate backup. Receives the current path
+ Restore the path from the appropriate backup. Receives the current path
from the first index iterator. itpath must be not null.
callback is a custom function that gets called for every file.
'''