/**
* Initializes the SimpleSAML_MetaShare_Store object. Only called by the getInstance
* singleton accessor.
*/
private function __construct()
{
$metaConfig = SimpleSAML_Configuration::getConfig('metashare.php');
$this->metadataPath = $metaConfig->getString('metashare.path');
$this->metadataPath = SimpleSAML_Utilities::resolvePath($this->metadataPath);
if (!is_dir($this->metadataPath)) {
$ret = mkdir($this->metadataPath, 0755, TRUE);
if (!$ret) {
throw new Exception('Unable to create directory: ' . $this->metadataPath);
}
}
}