------art_30088_2615131.1131378295190
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

i am using Find::find, but i got it to only display files and dirs in
current directory, not to do the same with subdirectories..
greetings, Dirk.

 2005/11/7, Robert Klemme <bob.news / gmx.net>:
>
> Dirk Meijer wrote:
> > hi,
> > 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.
>
> You probably get an endless recursion because you don't exclude "." and
> ".." from the recursion.
>
> You can make your life much easier by using Find. Try this:
>
> ruby -r find -e 'Find.find(".") {|f| puts f}'
>
> Kind regards
>
> robert
>
>
>

------art_30088_2615131.1131378295190--