# File lib/net/sftp/session.rb, line 201 def put_file( local_path, remote_path ) contents = File.open( local_path, "rb" ) { |f| f.read } open_handle( remote_path, "w" ) { |handle| write( handle, contents ) } end