Name

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(...); 
 

Parameters

parameterdescription
filenameFull path name of the desired .info.xml file
setnoThe set number this entry refers to
setinfoA pointer to a hash (hashref) containing the details for the desired set.

Summary

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.

Availability

info_addupdate is available in Wacs 1.0.0 and later.