From: xavier nayrac Date: 2011-02-03T16:49:56+09:00 Subject: Re: cp_r is not working 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