public function setDirectory($directory)
{
if (($path = realpath($directory)) === false || !is_dir($path)) {
throw new TInvalidDataValueException('directorycachedependency_directory_invalid', $directory);
}
$this->_directory = $path;
$this->_timestamps = $this->generateTimestamps($path);
}