Frederick Cheung wrote:
> On 3 Feb 2009, at 10:43, Newb Newb wrote:
> 
>>
>> Hi all...
>> i have folder named test in my application's public folder .
>> i want to iterate that folder named test which is in public folder.
>> for that i tried this code it gives me error like
>>
> What code :-) ? Dir.each, Dir.glob, Dir.entries can all be useful for
> this sort of thing.
> 
> Fred

Dir.foreach("/ACMServer_exe") do |folder_name|

does this code is correct.
but it gives me error.
 => this folder is in public folder => ACMServer_exe


pls help me
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to