Created
August 29, 2015 05:50
-
-
Save wagurano/0f06742ff0baf2a78b3f to your computer and use it in GitHub Desktop.
Move all of contents files to images directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'FileUtils' | |
Dir["contents/**/*"].select{ |f| File.file? f }.map{ |f| FileUtils.move "#{f}", "images/#{File.basename f}.jpg" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment