Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/net/scp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ def scp_command(mode, options)
# sets up a state machine to use to process the upload or download.
# (See Net::SCP::Upload and Net::SCP::Download).
def start_command(mode, local, remote, options={}, &callback)
local = local.to_path if local.respond_to?(:to_path) && !local.respond_to?(:to_io)
session.open_channel do |channel|

if options[:shell]
Expand Down