public function setMode($mode) {
		if ($this->isLink()) {
			return lchmod($this->pathname, $mode);
		} else {
			return chmod($this->pathname, $mode);
		}
	}
public function setMode($mode) {
		if ($this->isLink()) {
			return lchmod($this->pathname, $mode);
		} else {
			return chmod($this->pathname, $mode);
		}
	}
public function setMode ( $ mode ) { if ( $ this -> isLink ( ) ) { return lchmod ( $ this -> pathname , $ mode ) ; } else { return chmod ( $ this -> pathname , $ mode ) ; } }
Attempts to change the mode.

@see #setGroup
@see #setOwner

@param int $mode
Note that mode is not automatically assumed to be an octal value, so strings
(such as "g+w") will not work properly. To ensure the expected operation, you
need to prefix mode with a zero (0).

@return boolean Returns TRUE on success or FALSE on failure.
Attempts to change the mode .