def _timestamp_progress_dir(self):
        # It is possible save checkpoints faster than 1 per second resulting in
        # collisions in the naming convention.

        for _ in xrange(2):
            timestamp = self._checkpoint_timestamp()
            final_dir = os.path.join(self.config.backup_dir, timestamp)
            try:
                os.rename(self.config.in_progress_dir, final_dir)
                return
            except OSError:
                logger.warning("Extreme, unexpected race condition, retrying (%s)", timestamp)

        # After 10 attempts... something is probably wrong here...
        logger.error(
            "Unable to finalize checkpoint, %s -> %s",
            self.config.in_progress_dir, final_dir)
        raise errors.ReverterError(
            "Unable to finalize checkpoint renaming")
Inject the ``encoded`` attribute to the token and return the token
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot/reverter.py/Reverter._timestamp_progress_dir--crossover with--dataset/ETHPy150Open quantmind/lux/lux/extensions/auth/backends.py/AuthMixin.add_encoded