Skip to content

Instantly share code, notes, and snippets.

@robertjwhitney
Created June 7, 2011 15:07
Show Gist options
  • Save robertjwhitney/1012440 to your computer and use it in GitHub Desktop.
Save robertjwhitney/1012440 to your computer and use it in GitHub Desktop.
extrating a bunch of images in subfolders
require 'fileutils'
@files = Dir.glob('/Users/BobW/desktop/test/*/*')
@files.each do |file|
FileUtils.mv(file, '/Users/BobW/desktop/test2')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment