show the size of the *.bin written
This commit is contained in:
parent
99eccf44c5
commit
50aeed0b53
1 changed files with 7 additions and 1 deletions
8
thing.rb
8
thing.rb
|
@ -298,7 +298,13 @@ if $0 == __FILE__
|
||||||
file.write(parent.to_json)
|
file.write(parent.to_json)
|
||||||
|
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue