Mega Code Archive

 
Categories / Ruby / File Directory
 

Open a folder with block logics

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