public function __construct($path) { parent::__construct($path); if (!$this->isDirectory()) { throw new FsException('"' . $path . '" is not a directory', FsException::ERR_NOT_A_DIR); } }