public function permissions($mode = null, $recursive = false) { if (isset($mode)) { if ($recursive) { foreach ($this->iterator(null, true, \RecursiveIteratorIterator::CHILD_FIRST) as $child) { $child->chmod($mode); } } chmod($this->_name, $mode); return $this; } return parent::permissions(); }
public function permissions($mode = null) { if (isset($mode)) { chmod($this->_name, $mode); return $this; } return parent::permissions(); }