From: Daniel Berger Date: 2008-12-11T08:25:28+09:00 Subject: Re: Ruby equivalent to `find . -perm -g+rw -ls` On Nov 17, 7:21 am, Bil Kleb wrote: > Hi, > > I can't find a Ruby equivalent to > >   find . -perm -g+rw -ls > > Currently, it looks like I'll need to combine, > >   File.stat(file).mode > > with something like Hal Fulton's sym2oct, > >  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/96956 > > hacked into Daniel Berger'sfile-findgem, > >  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/248981 > > and require 'etc' to pull out the user and group names instead of uids > and gids? > > Is there an alternative to all this yak shaving? I just released file-find 0.2.4 which now does all your yak shaving for you, i.e. it now supports symbolic permissions, too. Regards, Dan