<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_confirmation(self):
 """Get user confirmation to proceed."""

        if self.clear:
            action = 'This will DELETE ALL FILES in this location!'
        else:
            action = 'This will overwrite existing files!'

        message = (
            "\n"
            "You have requested to collect static files at the destination\n"
            "location as specified in your settings\n"
            "\n"
            "    {destination}\n"
            "\n"
            "{action}\n"
            "Are you sure you want to do this?\n"
            "\n"
            "Type 'yes' to continue, or 'no' to cancel: ".format(
                destination=self.destination_path,
                action=action,
            )
        )

        if input(''.join(message)) != 'yes':
            raise CommandError("Collecting tools cancelled.")