From 951965f5029fe1a2ee4147b15285bbefe71d60d2 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Sat, 21 Mar 2009 21:55:15 -0500 Subject: [PATCH] adding progress indicator --- bin/import_images.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/import_images.rb b/bin/import_images.rb index 7478693..7277b5d 100755 --- a/bin/import_images.rb +++ b/bin/import_images.rb @@ -155,7 +155,7 @@ photo_form['photo[album_id]'] = album # process files.each_with_index do |fname, idx| - puts "-> #{fname}" + puts "-> (#{idx + 1} / #{files.size}) #{fname}" # determine picture size width, height = nil, nil