'Remove temporary save dir: rollback will no longer be possible.'

def commit(self):

    if (self.save_dir is not None):
        rmtree(self.save_dir)
        self.save_dir = None
        self._moved_paths = []
