def METHOD_NAME(self):
    errors = 0
    # Rollback any transferred files
    for path in self._transferred:
        try:
            os.remove(path)
        except OSError:
            errors += 1
            self.log.error(
                "Failed to rollback created file: {}".format(path),
                exc_info=True)
    # Rollback the backups
    for backup, original in self._backup_to_original.items():
        try:
            os.rename(backup, original)
        except OSError:
            errors += 1
            self.log.error(
                "Failed to restore original file: {} -> {}".format(
                    backup, original),
                exc_info=True)
    if errors:
        self.log.error(
            "{} errors occurred during rollback.".format(errors),
            exc_info=True)
        six.reraise(*sys.exc_info())