public function verifyDirectoryExists($path, $label = 'path') { $this->verifyFileExists($path, $label); if (!is_dir($path)) { throw new Exception(sprintf('The %s at %s is not a directory', $label, $path)); } }