Eliran Bz a écrit :

> How can I SKIP the "." and ".."?
> Do you have an Idea?

One way:

Dir.foreach(path) do |file|
   next if ['.', '..'].include?(file)
   puts file
end

-- 
Xavier Nayrac
http://undeveloppeur.wordpress.com