[Ruby] Re: Обход директорий и вытаскивание из них полных путей файлов

Alexey Tourbin at at altlinux.ru
Wed Jun 11 16:00:52 MSD 2003


On Wed, Jun 11, 2003 at 01:12:13PM +0400, SoNaR wrote:
> Окончательный красивый вариант.
> 
> require "find"
> 
> Find.find( BASE ) do |f|
>   puts f if not File.stat(f).directory?
> end

А какой-нибудь fts_open прикрутить?  Или в Find'е он и есть?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/ruby/attachments/20030611/292686df/attachment-0001.bin


More information about the Ruby mailing list