Let's call this ```_sftp_get_file()``` and not use ```tempf``` as an argument name.

Also, this function should only do the sftp part. The ```chmod``` call should be in ```get_file()```.