[MacRuby-devel] [MacRuby] #292: FileUtils.cp_r can abort

MacRuby ruby-noreply at macosforge.org
Wed Jul 8 09:29:32 PDT 2009


#292: FileUtils.cp_r can abort
-------------------------------+--------------------------------------------
 Reporter:  tjw@…              |       Owner:  lsansonetti@…        
     Type:  defect             |      Status:  new                  
 Priority:  blocker            |   Milestone:                       
Component:  MacRuby            |    Keywords:                       
-------------------------------+--------------------------------------------
 I tracked down a crash in my app to FileUtils.cp_r when using experimental
 r2001.  The following script dies.  Removing a level of directory in the
 source avoids the problem.

 #!/bin/sh -f

 mkdir -p cp_r_test/2009/002-abcdef-abcabcd-abcd/abcdef
 mkdir -p cp_r_test/dst
 cd cp_r_test

 exec macruby <<EOS
 require 'fileutils'
 FileUtils.cp_r("2009/002-abcdef-abcabcd-abcd/abcdef", "/tmp/dst/")
 EOS

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/292>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list