If Dir.pwd
is the path you want to search including its subdirectories:
ignore_ext = [".xlsx"]
Find.find('.') do |file|
next if ignored_ext.include?(File.extname(file))
|| File.directory?(file)
puts file
end
If Dir.pwd
is the path you want to search including its subdirectories:
ignore_ext = [".xlsx"]
Find.find('.') do |file|
next if ignored_ext.include?(File.extname(file))
|| File.directory?(file)
puts file
end