From: matz@... (Yukihiro Matsumoto) Date: 2002-01-24T11:04:12+09:00 Subject: Re: Minor thoughts on 'Find' module Hi, In message "Re: Minor thoughts on 'Find' module" on 02/01/24, Michael Witrant writes: |> Could you propose the possible API of the "new Find"? | |What about Find.find(root = '.', *options)? | |Possible options: | :files_first | :directories_first | :depth_first | :files_only | :directories_only | :match => regexp | :follow_symlinks | :max_depth => integer | :without_root # this one would delete the provided root | # from the returned/yielded file names | ... Hmm. |And why not all those wonderfull options find(1) provides? Let's not do that. find(1) is a command, Find is a part of a program. We don't have to fall in "UNIX option hell". Find module is a directory tree walker. I think it's good to be able to specify how it traverse the tree, but no more, i.e. :files_only, :direcoties_only, etc. can (and should) be done in the user supplied block. matz.