1.20.x filetransfer.inc public final FileTransfer::chmod($path, $mode, $recursive = FALSE)

Parameters

string $path:

int $mode:

bool $recursive:

Throws

FileTransferException

See also

http://php.net/chmod

File

includes/filetransfer/filetransfer.inc, line 99
Base FileTransfer class.

Class

FileTransfer
@file Base FileTransfer class.

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);
}