public function __construct(FrameworkTool $tool) { $this->dir = $tool->getProperty('runDataDirectory') . '/dummy-mail'; if (!file_exists($this->dir)) { if (!mkdir($this->dir)) { $this->disabled = true; } } }
public function __construct(FrameworkTool $tool) { $this->Tool = $tool; $this->WorkingDir = $tool->getProperty('runDataDirectory') . '/email-log'; if (!file_exists($this->WorkingDir)) { if (!mkdir($this->WorkingDir)) { $this->Disabled = true; } } $this->lockFile = $this->WorkingDir . 'file-access.lock'; $this->metaFile = $this->WorkingDir . 'meta.json'; $this->RequestTime = $tool->getRequestTime(); }