Hi, I am trying NET:SFTP gem 1.1.0
Net::SFTP.start(''xxx'',''xxx'',''xxx'')
do |sftp|
sftp.mkdir("#{root}/fr")
end
Trying to create a remote dir (existing_dir/new_dir) I was getting a no such
file exception, so I tried to create a dir at the root of the sftp server.
Surprisingly It was created on my local filesystem.
** Invoke uploadpo (first_time)
** Execute uploadpo
mkdir pootle/po/tractis/fr
rake aborted!
No such file or directory - pootle/po/tractis/fr
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir''
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir''
/usr/local/lib/ruby/1.8/fileutils.rb:172:in `mkdir''
/usr/local/lib/ruby/1.8/fileutils.rb:171:in `mkdir''
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `mkdir''
/home/juanse/workspace/tractis-core/Rakefile:36
/usr/local/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/session.rb:58:in
`initialize''
/usr/local/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/protocol/driver.rb:155:in
`do_version''
/usr/local/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/protocol/driver.rb:186:in
`do_data''
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`to_proc''
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh/connection/channel.rb:496:in
`callback''
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh/connection/channel.rb:447:in
`do_data''
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh/connection/driver.rb:295:in
`do_channel_data''
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh/connection/driver.rb:155:in
`process''
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh/connection/driver.rb:138:in
`loop''
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh/session.rb:161:in
`loop''
/usr/local/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/session.rb:70:in
`initialize''
/usr/local/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp.rb:29:in
`start''
Additionaly it fails when passing hash :permissions => 755 with
no such option: permissions
Thanks in advance for your help
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/net-ssh-users/attachments/20060716/4a5eefac/attachment.html