Greetings,

If I run the following under the system ruby 1.8.7:

require 'find'
starting_directory="/Users/developer/Desktop/Top"
file_name_I_want_to_find="target_file.txt"
path=Find.find(starting_directory) {|p| break p if 
p.include?(file_name_I_want_to_find) } 
puts "path = #{path}"

... I get the expected output:

path = /Users/developer/Desktop/Top/Lev_1-2/Lev_2.1/target_file.txt

However, if I run it under Macruby I get nothing, just:

path =

I'm running MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] on 10.6.7

Not sure what is going on. 

Thanks,
Shannon


_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to