From: Martin DeMello Date: 2009-04-22T05:34:15+09:00 Subject: Re: directory watcher, trying to match filename to directory name. On Wed, Apr 22, 2009 at 12:42 AM, Brian Wallace wrote: > Tim, > >  This was my original idea, however this returns the full pathname - when I > only need actual directory name to be able to form the array of glob > patterns.. > > If I could figure out how this would return just the children directory > names of ('/root/directory'), this would be the perfect solution. Look up File.basename and File.dirname martin