From: Dafydd Fontenot Date: 2009-04-15T15:04:25+09:00 Subject: Re: iterating over directories Andrew Timberlake wrote: > On Wed, Apr 15, 2009 at 7:41 AM, Dafydd Fontenot > wrote: > > It should be printing all of the directories in the linux root. > What do you want it to do? I'm just having it print for now for debugging purposes. But eventually it will be storing all of the directory names in an array. Or is there any other way I can control that block to do different things if the current item is a file and do something else if it is a directory? -- Posted via http://www.ruby-forum.com/.