def put(self, local, remote, sudo=False):
if(os.path.isdir(local)):<EOL><INDENT>self.put_dir(local, remote, sudo=sudo)<EOL><DEDENT>else:<EOL><INDENT>self.put_single(local, remote, sudo=sudo)<EOL><DEDENT>
Copy local file to host via SFTP/SCP

        Copy is done natively using SFTP/SCP version 2 protocol, no scp command
        is used or required.