def dir_files(dir)
      Find.find(dir).to_a.reject!{|f| File.directory?(f) }
    end
def dir_files(dir)
      Find.find(dir).to_a.reject!{|f| File.directory?(f) }
    end
Find all files in a given directory