public function open($path) { parent::open($path); if (!$this->isDir()) { throw new \InvalidArgumentException('"' . $path . '" : est un fichier'); } return $this; }