Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 09/Apr/13 2:18 AM
Description:
irb(main):009:0> path = ("file:/C:/Users/Administrator/Downloads/logstash-1.1.10.dev-flatjar.jar!/racob-x86.dll")
=> "file:/C:/Users/Administrator/Downloads/logstash-1.1.10.dev-flatjar.jar!/racob-x86.dll"
irb(main):010:0> path = ("file:/C:/Users/Administrator/Downloads/logstash-1.1.10.dev-flatjar.jar!/racob-x86.dll")
=> "file:/C:/Users/Administrator/Downloads/logstash-1.1.10.dev-flatjar.jar!/racob-x86.dll"
irb(main):011:0> File.stat(path).size
=> 105984
irb(main):012:0> require "fileutils"
=> true
irb(main):013:0> FileUtils.cp(path, "./test.dll")
=> nil
irb(main):014:0> File.stat("./test.dll").size
=> 4196

As you can see above, a 105kb file given to FileUtils.cp only had 4196 bytes written.

Work around, copy myself, basically 'out.write(chunk) while chunk = input.read(16384)'

Project: JRuby
Priority: Major Major
Reporter: Jordan Sissel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to