info_addupdate — Updates the info for a set in the .info.xml file using the supplied hash of attributes - creates the file if not present
use Wacs;
use Wacs::WacsId;
scalar info_addupdate( | ...) ; |
parameter | description |
---|---|
filename | Full path name of the desired .info.xml file |
setno | The set number this entry refers to |
setinfo | A pointer to a hash (hashref) containing the details for the desired set. |
The info_addupdate
is used to create, add or update
details about a set in the within filesystem information cache. This cache
provides a safeguard against data corruption and is used to determine if new
material has been added to the directory since the run of the indexer programs.
It returns 1 if it creates a new .info.xml file, 0 if it has merely added to
or updated an entry within an existing .info.xml file.