C
Clement Ow
I get the following error when i execute my code:
A snippet of my code is as follows:
if $file_exception != nil
src1 = $file_exception.inject(Find.find(src)) {|result,
ex|result.reject{|x| File.basename(x) =~ Regexp.new(ex,
Regexp::IGNORECASE)}}
else
src1 = $source
end
i = i + 1
Find.find(src1).each do |file|
matchExp = excep_yyyymmdd.match(File.basename(file))
matchExp1 = excep_ddmmyyyy.match(File.basename(file))
Is there something wrong with my code at all? (maybe i overlooked
something very simple)
A snippet of my code is as follows:
if $file_exception != nil
src1 = $file_exception.inject(Find.find(src)) {|result,
ex|result.reject{|x| File.basename(x) =~ Regexp.new(ex,
Regexp::IGNORECASE)}}
else
src1 = $source
end
i = i + 1
Find.find(src1).each do |file|
matchExp = excep_yyyymmdd.match(File.basename(file))
matchExp1 = excep_ddmmyyyy.match(File.basename(file))
Is there something wrong with my code at all? (maybe i overlooked
something very simple)