Rubyでどう書く?特別編:Matzからのお題 - builder by ZDNet Japan

screenshot

require 'parsedate' require 'fileutils' require 'find' require 'rubygems' require 'extexif' # フォルダ指定 src = "/mnt/card/DCIM/100NECDT/" dst = "/var/image/" # ファイルリスト作成 list = [] Find.find(File.expand_path(src)) { |path| if /.*(jpg|JPG|jpeg|JPG)\z/ =~ path list << path end } # 振り分け list.sort.each { |path| image = ExtExif.new(path) foldername = image["MetadataDate"][0,10].split(/:/).join folderpath = dst + foldername Dir.mkdir(folderpath) unless File.exist?(folderpat...

http://builder.japan.zdnet.com/sp/ruby-doukaku-panel/story/0,3800086254,20376852,00.htm

いいなあ。お会いしたかったな

http://b.hatena.ne.jp/entry/http://builder.japan.zdnet.com/sp/ruby-doukaku-panel/story/0,3800086254,20376852,00.htm