Open a folder with grep as a filter : Dir.open « File Directory « Ruby






Open a folder with grep as a filter


Dir.open('mydir') { |d| d.grep /file/ }

 

Related examples in the same category

1.Open a folder with block logics