Module: FileHelper

Included in:
Kernel
Defined in:
lib/leagues.rb

Overview

todo/check

note - move FileHelper upstream to cocos (code commons) - why? why not?

Instance Method Summary collapse

Instance Method Details

#find_file(filename, path:) ⇒ Object



48
49
50
51
52
53
54
55
56
# File 'lib/leagues.rb', line 48

def find_file( filename, path: )
  path.each do |src_dir|
    path = "#{src_dir}/#{filename}"
    return path   if File.exist?( path )
  end

  ##  fix - raise file not found error!!!
  nil  ## not found - raise filenot found error - why? why not?
end