Lines Matching defs:path

50     private $path;
131 * Extract a path from a URI and actually connect to an SSH server if appropriate
136 * @param string $path
139 protected function parse_path($path)
141 $orig = $path;
142 extract(parse_url($path) + ['port' => 22]);
144 $path .= '?' . $query;
146 $path .= '?';
149 $path .= '#' . $fragment;
151 $path .= '#';
183 return $path;
231 return $path;
237 * @param string $path
243 private function _stream_open($path, $mode, $options, &$opened_path)
245 $path = $this->parse_path($path);
247 if ($path === false) {
250 $this->path = $path;
252 $this->size = $this->sftp->filesize($path);
260 $this->sftp->touch($path);
268 $this->sftp->truncate($path, 0);
300 $result = $this->sftp->get($this->path, false, $this->pos, $count);
332 $result = $this->sftp->put($this->path, $data, SFTP::SOURCE_STRING, $this->pos);
410 * @param string $path
415 private function _stream_metadata($path, $option, $var)
417 $path = $this->parse_path($path);
418 if ($path === false) {
429 return $this->sftp->touch($path, $time, $atime);
434 return $this->sftp->chown($path, $var);
436 return $this->sftp->chgrp($path, $var);
438 return $this->sftp->chmod($path, $var) !== false;
479 unset($path1['path'], $path2['path']);
490 $path_to = $path_to['path']; // the $component part of parse_url() was added in PHP 5.1.2
522 * @param string $path
526 private function _dir_opendir($path, $options)
528 $path = $this->parse_path($path);
529 if ($path === false) {
533 $this->entries = $this->sftp->nlist($path);
576 * @param string $path
581 private function _mkdir($path, $mode, $options)
583 $path = $this->parse_path($path);
584 if ($path === false) {
588 return $this->sftp->mkdir($path, $mode, $options & STREAM_MKDIR_RECURSIVE);
599 * @param string $path
603 private function _rmdir($path, $options)
605 $path = $this->parse_path($path);
606 if ($path === false) {
610 return $this->sftp->rmdir($path);
632 $results = $this->sftp->stat($this->path);
642 * @param string $path
645 private function _unlink($path)
647 $path = $this->parse_path($path);
648 if ($path === false) {
652 return $this->sftp->delete($path, false);
662 * @param string $path
666 private function _url_stat($path, $flags)
668 $path = $this->parse_path($path);
669 if ($path === false) {
673 $results = $flags & STREAM_URL_STAT_LINK ? $this->sftp->lstat($path) : $this->sftp->stat($path);
689 if (!$this->sftp->truncate($this->path, $new_size)) {