def do_walk(self): self.start_account() for path in self.mboxes: self.current_relpath = self.get_rel_path(path) self.logger.info('Processing folder found at: {}'.format(path)) self.new_folder = False self.mbx = None self.message_generator(path) self._fldr_render_continue(path) self.close_account() if CommonMethods.get_stitch(): self.account.stitch_account()
def process_folders(self): for path, files in self.message_pack.items(): self.current_relpath = self.get_rel_path(path) for f in files: if CommonMethods.get_chunksize( ) != 0 and CommonMethods.get_chunksize() == self.chunks: # Render the folder and reopen self._fldr_render_reopen(path) self.chunks = 0 self.cur_fn = f self.message_generator(os.path.join(path, f)) self._fldr_render(path) self.account.close_account() if CommonMethods.get_stitch(): self.account.stitch_account()