require 'find' Find.find(ARGV[0]) do |path| puts path end