@@ -606,10 +606,10 @@ def getbinaryfile(remotefile, localfile = File.basename(remotefile),
606606 if localfile
607607 if @resume
608608 rest_offset = File . size? ( localfile )
609- f = open ( localfile , "a" )
609+ f = File . open ( localfile , "a" )
610610 else
611611 rest_offset = nil
612- f = open ( localfile , "w" )
612+ f = File . open ( localfile , "w" )
613613 end
614614 elsif !block_given?
615615 result = ""
@@ -637,7 +637,7 @@ def getbinaryfile(remotefile, localfile = File.basename(remotefile),
637637 def gettextfile ( remotefile , localfile = File . basename ( remotefile ) ) # :yield: line
638638 result = nil
639639 if localfile
640- f = open ( localfile , "w" )
640+ f = File . open ( localfile , "w" )
641641 elsif !block_given?
642642 result = ""
643643 end
@@ -683,7 +683,7 @@ def putbinaryfile(localfile, remotefile = File.basename(localfile),
683683 else
684684 rest_offset = nil
685685 end
686- f = open ( localfile )
686+ f = File . open ( localfile )
687687 begin
688688 f . binmode
689689 if rest_offset
@@ -702,7 +702,7 @@ def putbinaryfile(localfile, remotefile = File.basename(localfile),
702702 # passing in the transmitted data one line at a time.
703703 #
704704 def puttextfile ( localfile , remotefile = File . basename ( localfile ) , &block ) # :yield: line
705- f = open ( localfile )
705+ f = File . open ( localfile )
706706 begin
707707 storlines ( "STOR " + remotefile , f , &block )
708708 ensure
0 commit comments