Changes permissions of the resource.
PHP lacks this functionality and it is not part of the official stream wrapper interface. This is a custom implementation for Drupal.
$mode: Integer value for the permissions. Consult PHP chmod() documentation for more information.
Returns TRUE on success or FALSE on failure.
public function chmod($mode);