From: Kev Jackson Date: 2006-07-24T13:18:08+09:00 Subject: Re: checking for directory (noob mistake?) I'm not sure, but works fine on my machine (OSX) Dir.foreach("/Users/kj") do |temp| p "#{temp} #{File.expand_path temp}" p File.directory? "#{File.expand_path temp}" end ... Spikefish:~/projects/ant-tla/trunk kj$ ruby ~/test.rb /Users/kj/test.rb:3: warning: parenthesize argument(s) for future version ". /Users/kj/projects/ant-tla/trunk" true ".. /Users/kj/projects/ant-tla" true "-private- /Users/kj/projects/ant-tla/trunk/-private-" false ".appletviewer /Users/kj/projects/ant-tla/trunk/.appletviewer" false -- "In vain you tell me that Artificial Government is good, but that I fall out with the Abuse. The Thing! The Thing itself is the Abuse!" - Edmund Burke