optimized
git-svn-id: file:///home/svn/incoming/trunk@2410 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7da65883d0
commit
5d60d7aee8
|
@ -70,14 +70,12 @@ Separator = "\\"
|
|||
src_fd = client.fs.file.new(src, "rb")
|
||||
dst_fd = ::File.new(dest, "wb")
|
||||
|
||||
while (!src_fd.eof?)
|
||||
data = src_fd.read
|
||||
begin
|
||||
while ((data = src_fd.read) != nil)
|
||||
|
||||
if (data == nil)
|
||||
next
|
||||
dst_fd.write(data)
|
||||
end
|
||||
|
||||
dst_fd.write(data)
|
||||
rescue EOFError
|
||||
end
|
||||
|
||||
src_fd.close
|
||||
|
|
Loading…
Reference in New Issue