FileTransfer::chmod
public final function FileTransfer::chmod
public final FileTransfer::chmod($path, $mode, $recursive = FALSE)
Parameters
string $path:
long $mode:
bool $recursive:
See also
File
- includes/filetransfer/filetransfer.inc, line 90
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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!filetransfer!filetransfer.inc/function/FileTransfer::chmod/7.x