Hi,

Rolando Abarca <funkas... / gmail.com> wrote:
>
> maybe something like this?
> [..]
> rolando:test_perm rolando$ cat perm.rb
> # NOTE: 060 == g+rw

This is what I'm reduced to doing now.  It just feels wrong
for me to have to resort to octal -- it's not at the
correct abstraction level as evidenced by your comment.

> p Dir["./**/*"].select {
>  |f| File.stat(f).mode & 060 == 060 ? true : nil }

You don't need the '? true : nil' part AFAICT -- the
first conditional satisfies select.

Regards,
--
http://twitter.com/bil_kleb