From: Robert Klemme Date: 2006-10-22T05:40:14+09:00 Subject: Re: search file in a directory Li Chen wrote: > Which built-in method is used to search a file in a directory and all > its children directory? As always, there are more ways, depending on what you want to do. For simple searching of a file by name Dir is easiest. Find is more appropriate for tasks that have to deal with every file etc. http://ruby-doc.org/core/classes/Dir.html http://ruby-doc.org/stdlib/libdoc/find/rdoc/index.html Regards robert