From: Jared Richardson Date: 2006-03-02T05:08:37+09:00 Subject: Re: show all files from a folder "misiek" wrote in message news:du4tf9$8g5$1@inews.gazeta.pl... >I can not find nothing about files in google, > how to create delete, how to show all files from a folder > > if you can redirect me to some web site I'd appreciate > thanks Here's the website I use: http://www.rubycentral.com/ref/ Check out Dir and File Here's some sample code I've been tinkering with that should get you started. def findDirs (thisDir) Dir.entries(thisDir).each { |x| next if [ "." , ".." ].include? x thisFile = File.join(thisDir,x) case File.ftype(thisFile) when "directory" puts "Found a directory: "+thisFile findDirs(thisFile) when "file" #puts "Found a file! "+File.join(thisDir, x) end } end DirHelper.new.findDirs(ARGV[0]) end Jared http://JaredRichardson.net