Mega Code Archive

 
Categories / Ruby / File Directory
 

Find find by block

require 'find' Find.find('./') do |path|   Find.prune if File.basename(path) == 'subdir2'   puts path end