Call to download!, Why args [0].size is nil? upload! is normal. thanks :) #19

Open
lovee opened this Issue Nov 22, 2012 · 2 comments

Comments

Projects
None yet
3 participants

lovee commented Nov 22, 2012

HI!
Version:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
net-sftp (2.0.5)
net-ssh (2.6.1)


1.9.3-p194 :031 > ne.sftp.download!("/home/msgplus/p_bak", "/home/msgplus/pp") {|event, dw, *args|
case event
when :get then
p args[0];
end;
}

<struct Net::SFTP::Operations::Download::Entry remote="/home/msgplus/p_bak",

local="/home/msgplus/pp", directory=nil, size=nil, handle="\x00\x00\x00\x03", offset=32000, sink=#
File:/home/msgplus/pp>

1.9.3-p194 :032 > ne.sftp.upload!("/home/msgplus/p_bak", "/home/msgplus/pp") {|event, up, *args|
case event
when :put then
p args[0];
end;
}

<struct Net::SFTP::Operations::Upload::LiveFile local="/home/msgplus/p_bak",

remote="/home/msgplus/pp", io=#File:/home/msgplus/p_bak, size=7971,
handle="\x00\x00\x00\x03">

I can confirm this. Same issue here.

struct Net::SFTP::Operations::Download::Entry remote="xx", local="xx", directory=nil, size=nil, handle=nil, offset=nil, sink=nil

I also confirm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment