Lines Matching refs:sftp

48     private $sftp;  variable in phpseclib3\\Net\\SFTP\\Stream
186 $this->sftp = $host;
192 $sftp = $context[$scheme]['session'];
195 $sftp = $context[$scheme]['sftp'];
197 if (isset($sftp) && $sftp instanceof SFTP) {
198 $this->sftp = $sftp;
217 $this->sftp = self::$instances[$host][$port][$user][(string) $pass];
219 $this->sftp = new SFTP($host, $port);
220 $this->sftp->disableStatCache();
233 if (!$this->sftp->login($user, $pass)) {
239 if (!$this->sftp->login($user, $pass)) {
243 self::$instances[$host][$port][$user][(string) $pass] = $this->sftp;
269 $this->size = $this->sftp->filesize($path);
277 $this->sftp->touch($path);
285 $this->sftp->truncate($path, 0);
318 $result = $this->sftp->get($this->path, false, $this->pos, $count);
321 …->notification, STREAM_NOTIFY_FAILURE, STREAM_NOTIFY_SEVERITY_ERR, $this->sftp->getLastSFTPError()…
351 $result = $this->sftp->put($this->path, $data, SFTP::SOURCE_STRING, $this->pos);
354 …->notification, STREAM_NOTIFY_FAILURE, STREAM_NOTIFY_SEVERITY_ERR, $this->sftp->getLastSFTPError()…
452 return $this->sftp->touch($path, $time, $atime);
457 return $this->sftp->chown($path, $var);
459 return $this->sftp->chgrp($path, $var);
461 return $this->sftp->chmod($path, $var) !== false;
474 return $this->sftp->fsock;
519 if (!$this->sftp->rename($path_from, $path_to)) {
520 if ($this->sftp->stat($path_to)) {
521 … return $this->sftp->delete($path_to, true) && $this->sftp->rename($path_from, $path_to);
560 $this->entries = $this->sftp->nlist($path);
619 return $this->sftp->mkdir($path, $mode, $options & STREAM_MKDIR_RECURSIVE);
642 return $this->sftp->rmdir($path);
666 $results = $this->sftp->stat($this->path);
687 return $this->sftp->delete($path, false);
709 … $results = $flags & STREAM_URL_STAT_LINK ? $this->sftp->lstat($path) : $this->sftp->stat($path);
726 if (!$this->sftp->truncate($this->path, $new_size)) {