you are here: codestackercodes [RSS]listing files in a directory with rails

listing files in a directory with rails

via Shairon Toledo @ rails-br

Dir.glob("*").each{|f|  puts "Name: #{f} | Created at: #{File.ctime(f)} | Updated at: #{File.mtime(f)}"   }

Comments