Implements Drupal\Core\StreamWrapper\StreamWrapperInterface::chmod().
Overrides StreamWrapperInterface::chmod
function chmod($mode) {
$output = @chmod($this
->getLocalPath(), $mode);
// We are modifying the underlying file here, so we have to clear the stat
// cache so that PHP understands that URI has changed too.
clearstatcache(TRUE, $this
->getLocalPath());
return $output;
}