show the size of the *.bin written

This commit is contained in:
Vincent Batts 2012-07-31 13:47:01 -04:00
parent 99eccf44c5
commit 50aeed0b53

View file

@ -298,7 +298,13 @@ if $0 == __FILE__
file.write(parent.to_json)
end
puts "Wrote:\n [%d] %s\n [%d] %s" % [File.size(txt_name), txt_name, File.size(json_name), json_name]
binary.flush # the bits need to be written before showing the size of the file
puts "Wrote:"
[txt_name, json_name, binary.path].each do |filename|
puts " [%d] %s" % [File.size(filename), filename]
end
end
end