lib/io_streams/sftp/writer.rb in iostreams-0.10.0 vs lib/io_streams/sftp/writer.rb in iostreams-0.10.1

- old
+ new

@@ -56,11 +56,11 @@ options[:password] = password options[:port] = port mode = binary ? 'wb' : 'w' Net::SFTP.start(host, user, options) do |sftp| - sftp.session.exec!("mkdir -p '#{File.dirname(file_name)}'") if mkdir - sftp.file.open(file_name, mode, & block) + sftp.session.exec!("mkdir -p '#{::File.dirname(file_name)}'") if mkdir + sftp.file.open(file_name, mode, &block) end end end end