Overrides ChmodInterface::chmodJailed
public function chmodJailed($path, $mode, $recursive) { $cmd = sprintf("chmod %s%o %s", $recursive ? '-R ' : '', $mode, escapeshellarg($path)); if (@(!ssh2_exec($this->connection, $cmd))) { throw new FileTransferException('Cannot change permissions of @path.', 0, [ '@path' => $path, ]); } }