Mega Code Archive
Categories
/
Ruby
/
File Directory
Open a folder with grep as a filter
Dir.open('mydir') { |d| d.grep /file/ }