<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def transfer_file(self):
 """SCP transfer file."""

        if self.direction == "put":
            self.put_file()
        elif self.direction == "get":
            self.get_file()