Skip to content

Instantly share code, notes, and snippets.

@alecmce
Created September 28, 2010 03:28
Show Gist options
  • Save alecmce/600353 to your computer and use it in GitHub Desktop.
Save alecmce/600353 to your computer and use it in GitHub Desktop.
def inspect(dir)
Dir.foreach(dir) do |subdir|
if (FileTest.directory?(subdir))
inspect(subdir)
end
end
do_something_interesting_with_directory(dir)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment