public function chmod($mode, $file) {
		$this->connectIfNeeded();
		$this->handle->chmod($mode, $file);
		$this->onFileModeChanged(
			new Event(['sender' => $this, 'data' => [
				'mode' => $mode, 'file' => $file
			]])
		);
	}
public function chmod($mode, $file) {
		$this->connectIfNeeded();
		$this->handle->chmod($mode, $file);
		$this->onFileModeChanged(
			new Event(['sender' => $this, 'data' => [
				'mode' => $mode, 'file' => $file
			]])
		);
	}
public function chmod ( $ mode , $ file ) { $ this -> connectIfNeeded ( ) ; $ this -> handle -> chmod ( $ mode , $ file ) ; $ this -> onFileModeChanged ( new Event ( [ 'sender' => $ this , 'data' => [ 'mode' => $ mode , 'file' => $ file ] ] ) ) ; }
Set permissions on a file via FTP.

@param string    $mode          The new permissions, given as an <strong>octal</strong> value.
@param string    $file          The remote file.

@throws FtpException If couldn't set file permission.
Set permissions on a file via FTP .