Open a folder with block logics : Dir.open « File Directory « Ruby






Open a folder with block logics


Dir.open('mydir') { |d| d.each { |x| puts x } }

 

Related examples in the same category

1.Open a folder with grep as a filter