final public function FileTransfer::chmod

Parameters

string $path:

long $mode:

bool $recursive:

See also

http://php.net/chmod

File

drupal/includes/filetransfer/filetransfer.inc, line 90

Class

FileTransfer

Code

public final function chmod($path, $mode, $recursive = FALSE) {
  if (!in_array('FileTransferChmodInterface', class_implements(get_class($this)))) {
    throw new FileTransferException('Unable to change file permissions');
  }
  $path = $this
    ->sanitizePath($path);
  $path = $this
    ->fixRemotePath($path);
  $this
    ->checkPath($path);
  $this
    ->chmodJailed($path, $mode, $recursive);
}