LibreCat / Catmandu-BagIt

Catmandu module for working with BagIt packages
Other
1 stars 1 forks source link

keep speciale fields for bag-info.txt separate and refuse adding with method add_info #16

Open nicolasfranck opened 4 years ago

nicolasfranck commented 4 years ago
$bagit->add_file( IO::File->new("myfile"), "r" );
$bagit->add_info( "Bag-Size",[]);
$bagit->write("mydirectory");

Bag-Size now reads:

Bag-Size: ARRAY(0x8993)

Explanation:

https://github.com/LibreCat/Catmandu-BagIt/blob/master/lib/Catmandu/BagIt.pm#L654