public function open($path)
 {
     parent::open($path);
     if ($this->isDir()) {
         throw new \InvalidArgumentException('"' . $path . '" : est un dossier');
     }
     return $this;
 }
 /**
  * Changer le mode (droits d'acces) du dossier.
  * @param bool $recursive Si defini a vrai, les sous-dossiers seront affectes.
  * @return Folder Le dossier.
  */
 public function chmod($mod, $recursive = false)
 {
     parent::chmod($mod);
     if ($recursive) {
         $list = $this->contents();
         foreach ($list as $file) {
             $file->chmod($mod);
         }
     }
     return $this;
 }