From: Jan Svitok Date: 2006-12-28T19:19:19+09:00 Subject: Re: Problem with win32 change notify, dbi and sql server On 12/28/06, Jan Svitok wrote: Sorry, my kbd went wrong :( > On 12/27/06, lrlebron@gmail.com wrote: > > I have created a script to monitor a directory and update a database > > Hi, don't know the solution, just a small off-topic hint: > > you can write this > > > myMatch = @excluded_dirs.select{|e| fullname.include?e} > > if myMatch.length == 0 > > as > unless @excluded_dirs.any?{|e| fullname.include?e} > > and this > > if not @excluded_files == nil and @excluded_files.length > 0 > > if not @excluded_files.nil? and not @excluded_files.empty? > or unless @excluded_files.nil? or @excluded_files.empty?