src/Handler.php
public function setPermissions($permissions)
	{
		if (is_string($permissions))
		{
			$permissions = '0'.ltrim($permissions, '0');
			$permissions = octdec($permissions);
		}

		return chmod($this->path, $permissions);
	}
public function setPermissions($permissions)
	{
		if (is_string($permissions))
		{
			$permissions = '0'.ltrim($permissions, '0');
			$permissions = octdec($permissions);
		}

		return chmod($this->path, $permissions);
	}
public function setPermissions ( $ permissions ) { if ( is_string ( $ permissions ) ) { $ permissions = '0' . ltrim ( $ permissions , '0' ) ; $ permissions = octdec ( $ permissions ) ; } return chmod ( $ this -> path , $ permissions ) ; }
Sets the permissions

@return boolean
Sets the permissions