OSDN Git Service
(root)
/
tdcgexplorer
/
nimono-crawlers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19bd0d1
)
any location
author
moriq
<moriq@moriq.com>
Wed, 9 Jun 2010 19:37:29 +0000
(
04:37
+0900)
committer
moriq
<moriq@moriq.com>
Wed, 9 Jun 2010 19:37:29 +0000
(
04:37
+0900)
read-zip.rb
patch
|
blob
|
history
diff --git
a/read-zip.rb
b/read-zip.rb
index
80a55d6
..
98d1c66
100644
(file)
--- a/
read-zip.rb
+++ b/
read-zip.rb
@@
-27,7
+27,9
@@
rescue Zip::Error => exc
puts "error: " + exc.message
end
-Dir.glob('/Volumes/uploader/arc/mmd/*.zip') do |ent|
+location = ARGV.shift || 'mmd'
+
+Dir.glob("/Volumes/uploader/arc/#{location}/*.zip") do |ent|
dump_zip(ent)
puts
end