Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Arnold Ude

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Processing all files in a directory and its subdirectories ... revisited

   1  
   2  Dir['**/*.jpg'].foreach do |filename|
   3    ... do anything with the filename
   4  end

Processing all files in a directory and its subdirectories ... revisited

// This code shows (once again) how to process all files in a directory and its subdirectories

   1  
   2  Dir['**/*.jpg'].foreach do |filename|
   3    ... do anything with the filename
   4  end
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS