mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/ftp.rb (get): fix wrong argument name. Thanks to William
Webber. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5172e595c9
commit
e155879b46
2 changed files with 8 additions and 3 deletions
|
|
@ -507,12 +507,12 @@ module Net
|
|||
# Retrieves +remotefile+ in whatever mode the session is set (text or
|
||||
# binary). See #gettextfile and #getbinaryfile.
|
||||
#
|
||||
def get(localfile, remotefile = File.basename(localfile),
|
||||
def get(remotefile, localfile = File.basename(remotefile),
|
||||
blocksize = DEFAULT_BLOCKSIZE, &block) # :yield: data
|
||||
unless @binary
|
||||
gettextfile(localfile, remotefile, &block)
|
||||
gettextfile(remotefile, localfile, &block)
|
||||
else
|
||||
getbinaryfile(localfile, remotefile, blocksize, &block)
|
||||
getbinaryfile(remotefile, localfile, blocksize, &block)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue