Code:
Dir.foreach( path ) do |ding|
if File::directory?( pad + "/" + thing )
   # do something
else
   @result.text File.mtime( path + "/" + thing )
end
This is a piece of Ruby in Shoes. All works fine, i can open the file with File.new... or open etc.

However asking the mtime or size gives no results. I tried File.mtime( thing with or withour path ) and File:mtime and all permutations with names etc. What is wrong?