It's a binary vs. text issue. Net::SFTP needs to be fixed to always do binary uploads. I haven't done it yet, but it's on my plate.

(Can I be pardoned for a moment of ranting? This binary/text auto- translation thing is one of the dumbest things on the planet. Leave it to microsoft to paint themselves into that particular corner.)

- Jamis

On May 23, 2008, at 3:50 PM, paul wrote:


Just tried to use sftp upload in windows xp.
...
desc "doing upload"
task :test101, :roles => :wrapper do
 upload "#{local_path}/remote/1.txt", "#{remote_path}/remote/
1.txt",:via=>:sftp
end
...

run: cap test101

I can see 1.txt successfully [net::sftp upload] transfer to the
remote, but the file size is reduced (from 105,562 bytes to 105,394
bytes) and the file is truncated.  There is the same problem using
[net::sftp download]

Any idea?  Is it the bug?

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to