From: "Nakada, Nobuyoshi" Date: 2005-05-13T14:18:29+09:00 Subject: Re: Go through directories recursively Hi, At Fri, 13 May 2005 00:45:27 +0900, Ara.T.Howard@noaa.gov wrote in [ruby-talk:142400]: > from the find2 code i've incorporated into my personal lib (Alib): > > # > # If `entry_path' is a directory, find recursively. > # > if stat_result.directory? \ > && (!@xdev || @xdev_device == stat_result.dev) \ > && (!@follow || !visited?(stat_result)) This "visited?" method would be the key. We know it is possible, but judged it is too expensive to implement as built-in. -- Nobu Nakada