From: John Maclean Date: 2006-01-28T13:16:04+09:00 Subject: working with file types and directories This line shows all the files in the current dir. This one -should- show all of thier filetypes... Dir.foreach(".") {|x| File.ftype x } => nil # what gives? irb(main):023:0> Dir.foreach(".") {|x| File.ftype(x) } => nil Dir.foreach(".") {|x| File.ftype(#{x})} # I knew that this wouldn't work, but I tried it anyway -- John Maclean MSc (DIC) 07739 171 531