bagit-python icon indicating copy to clipboard operation
bagit-python copied to clipboard

Argument to write 'Bag-Size' to created bags?

Open axfelix opened this issue 6 years ago • 2 comments

Hi,

Should there be an argument to pass to make_bag() that adds a Bag-Size property automatically? That seems like an appropriate time to hook this in rather than trying to calculate and append a standard property after the fact.

axfelix avatar Oct 29 '19 17:10 axfelix

Does the oxum meet your needs for a Bag-Size property? It's in bag-info.txt in the form ####.### where the first part is the total bytes in the data folder and the second is the total number files in the data folder.

nkrabben avatar Jan 29 '20 19:01 nkrabben

Yup, I think so! Just looking to have that named element as I believe it's mentioned in the spec.

axfelix avatar Jan 29 '20 20:01 axfelix