end
while line = gets
- case location.code
- when 'mmd'
- name, summary, size, date, mime, origname, with_key, with_password = line.chomp.split(/\t/)
- when 'mmdfile', 'mmdacc1', 'mmdacc2'
- name, summary, size, date, origname = line.chomp.split(/\t/)
- end
+ name, summary, size, date, origname = line.chomp.split(/\t/)
md = /\.(.+)\z/.match(name)
extname = md[1]
code = File.basename(name, '.' + extname)
if with_password
comment.sub!(password_re, '')
end
- puts [ name, comment, size, date, mime, orig, with_key ? 'key' : '-', with_password ? 'password' : '-' ].join("\t")
+ puts [ name, comment, size, date, orig ].join("\t")
end
end
f.close