From: "Ara.T.Howard" Date: 2005-11-08T00:34:29+09:00 Subject: Re: why? On Tue, 8 Nov 2005, Dirk Meijer wrote: > i want my program to print all files and directories in a given directory, > then print files and dirs in subdirectories, without it showing the name of > the subdirectory.. but for some reason, it doesn't execute the method again > for the subdirectories found in the current directory.. greetings, Dirk. no need to write a recursive function: ruby -e' Dir["**/**"].each{|e| puts(File::basename(e))} ' hth. -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | anything that contradicts experience and logic should be abandoned. | -- h.h. the 14th dalai lama ===============================================================================