optimized

git-svn-id: file:///home/svn/incoming/trunk@2410 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-04-18 00:45:02 +00:00
parent 7da65883d0
commit 5d60d7aee8
1 changed files with 4 additions and 6 deletions

View File

@ -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